I am using the grid control to develop a program that will allow the user to work with some cells but not with others. I know that I can set a specific cell to read only, but I do not want the user to be able to have focus on that cell. Is there a way to do this on a cell level?
ADAdministrator Syncfusion Team May 10, 2005 10:24 AM
If you are using a GridControl and do not want the user to be able to click the cell at all, then you can set style.Enabled = false for the individual cells.
If you want the cells to be clickable, just not see the edit cursor, you can handle the grid.CurrentCellStartEditing event, and if grid.CurrentCell.RowIndex/ColIndex point to a cell you do not want to edit, set e.Cancel = true. This should work for either a GridControl or a GridDataboundGrid.