AD
Administrator
Syncfusion Team
November 12, 2004 01:59 PM UTC
If you want a whole column to not be ReadOnly, then you can set the GridBoundColumn.ReadOnly = false for that column using either the grid.GridBoundColumns (if you populated this collection) or grid.Binder.InternalColumns (if you did not populate the grid.GridBoundColumns collection).
But if you want to set a property (other than style.CellValue or style.Text) only on some cells in a column, then you have to do it dynamically handling an event through either grid.PrepareViewStyleInfo or grid.model.QueryCellInfo. You use PrepareViewStyleInfo for properties used in drawing the cell like style.BackColor. You need to use Model.QueryCellInfo for functional properties like ReadOnly.
Here are two KBs on this process. The second one shows how to use Model.QueryCellInfo to set ReadOnly = true for a cell. You could set it to false that way as well.
http://www.syncfusion.com/Support/article.aspx?id=560
http://www.syncfusion.com/Support/article.aspx?id=10351