windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-vgridoptionsselectionandfocus.md
Gets or sets whether selection of multiple records, rows and cells is enabled.
Namespace : DevExpress.XtraVerticalGrid.Rows
Assembly : DevExpress.XtraVerticalGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
[DefaultValue(false)]
[XtraSerializableProperty]
public bool MultiSelect { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property MultiSelect As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if selection of multiple records, rows and cells is enabled; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to MultiSelect |
|---|---|
| VGridControlBase |
.OptionsSelectionAndFocus .MultiSelect
|
Set the MultiSelect property to true to activate multiple record/row/cell selection. Then, use the VGridOptionsSelectionAndFocus.MultiSelectMode property to choose a selection mode:
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
|
VGridControlBase.SelectedChanged event
| |
Customize the appearance of selected records, rows and cells
|
VGridAppearanceCollection.SelectedRecord, VGridAppearanceCollection.SelectedRow and VGridAppearanceCollection.SelectedCell properties, accessible from the VGridControlBase.Appearance object
|
See Also
VGridOptionsSelectionAndFocus Class