DataBoundGrid How to disable individual cell selection?

How do I disable cell selection in a DataBoundGrid? Thanks for all the help

1 Reply

AD Administrator Syncfusion Team March 17, 2004 10:19 AM UTC

If you mean not being able to drag individual cells and select them, then you can turn off the Cell flag in the grid.AllowSelections property. this.gridControl1.AllowSelection = this.gridControl1.AllowSelection & ~GridSelectionFlags.Cell; If you mean never seeing a currentcell, then try these properties: this.gridDataBoundGrid1.ActivateCurrentCellBehavior = GridCellActivateAction.None; this.gridDataBoundGrid1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways; If you mean the current cell not showing the same color as other cells in the row when you select the row, then try handling the CurrentCellActivating event, and setting e.ColIndex = 0 in teh handler.

Loader.
Up arrow icon