VGridOptionsSelectionAndFocus.MultiSelect Property
Gets or sets whether selection of multiple records, rows and cells is enabled.
Namespace: DevExpress.XtraVerticalGrid.Rows
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true if selection of multiple records, rows and cells is enabled; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to MultiSelect |
---|---|
VGridControlBase |
|
Remarks
Set the MultiSelect property to true to activate multiple record/row/cell selection. Then, use the VGridOptionsSelectionAndFocus.MultiSelectMode property to choose a selection mode:
- MultiSelectMode.RecordSelect (default) - Enables selection of multiple records.
- MultiSelectMode.RowSelect - Enables selection of multiple rows.
- MultiSelectMode.CellSelect - Enables selection of multiple blocks of cells.
Traditional selection methods via the keyboard and mouse are supported out-of-the-box.
The following table lists members to work with the selection.
Task | Members |
---|---|
Select/deselect records, rows and cells in code | VGridControlBase.SelectRow, VGridControlBase.SelectRecord and VGridControlBase.SelectCell VGridControlBase.UnselectRecord, VGridControlBase.UnselectRow, VGridControlBase.UnselectCell and VGridControlBase.ClearSelection |
Retrieve selected records, rows and cells | VGridControlBase.GetSelectedCells, VGridControlBase.GetSelectedRecords and VGridControlBase.GetSelectedRows |
Copy selection to the Clipboard | VGridControlBase.CopyToClipboard method or the CTRL+C shortcut |
Respond to selection changes | |
Customize the appearance of selected records, rows and cells | VGridAppearanceCollection.SelectedRecord, VGridAppearanceCollection.SelectedRow and VGridAppearanceCollection.SelectedCell properties, accessible from the VGridControlBase.Appearance object |