VGridOptionsSelectionAndFocus.MultiSelect Property
Gets or sets whether selection of multiple records, rows and cells is enabled.
Namespace: DevExpress.XtraVerticalGrid.Rows
Assembly: DevExpress.XtraVerticalGrid.v19.1.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 |
---|---|
PropertyGridControl |
|
VGridControl |
|
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 |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MultiSelect property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.