How to Set ListBoxSelectionModes

3 Jan 20201 minute to read

To set ListBoxSelectionModes property that determines the selection behavior, use the following code.

//Selects Single record.
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;

//Selects MultiRecords.
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiSimple;

//Selects MultiExtendedRecords.
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
'Selects Single record.
Me.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One

'Selects MultiRecords.
Me.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiSimple

'Selects MultiExtendedRecords.
Me.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended