We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 05:19 AM

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.
Live Chat Icon For mobile
Up arrow icon