How to select all text in a Grid after clicking a cell

9 Dec 2019 / 1 minute to read

ActivateCurrentCellBehavior property controls the activation behavior as a cell becomes current by being clicked or through the cursor keys. If you want the cell text to be fully selected when a cell becomes the current cell, then use the following property.

//Sets Cell Activation behavior to 'SelectAll'.
this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
'Sets Cell Activation behavior to 'SelectAll'.
Me.Grid.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll
this.gridGroupingControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
this.gridGroupingControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll


Other options range from None (no activation at all) to ClickOnCell, DblClickOnCell or SetCurrent.