Back to Devexpress

VGridOptionsSelectionAndFocus.MultiSelect Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-vgridoptionsselectionandfocus.md

latest6.4 KB
Original Source

VGridOptionsSelectionAndFocus.MultiSelect Property

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

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public bool MultiSelect { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property MultiSelect As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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 TypePath to MultiSelect
VGridControlBase

.OptionsSelectionAndFocus .MultiSelect

|

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:

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

MultiSelectMode

SelectRow

SelectRecord(Int32)

SelectCell

UnselectRecord(Int32)

UnselectRow

UnselectCell

ClearSelection()

SelectedRecord

SelectedRow

SelectedCell

CopyToClipboard()

GetSelectedCells()

GetSelectedRecords()

GetSelectedRows()

VGridOptionsSelectionAndFocus Class

VGridOptionsSelectionAndFocus Members

DevExpress.XtraVerticalGrid.Rows Namespace