How to Select All Text in Windows Forms Grid Control
18 Nov 20181 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.SelectAllthis.gridGroupingControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;this.gridGroupingControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAllOther options range from None (no activation at all) to ClickOnCell, DblClickOnCell or SetCurrent.