GridOptionsSelection.MultiSelectMode Property

Gets or sets whether multiple cells or rows can be selected.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DefaultValue(GridMultiSelectMode.RowSelect)]
[XtraSerializableProperty]
public virtual GridMultiSelectMode MultiSelectMode { get; set; }
<DefaultValue(GridMultiSelectMode.RowSelect)>
<XtraSerializableProperty>
Public Overridable Property MultiSelectMode As GridMultiSelectMode

Property Value

Type Default Description
GridMultiSelectMode

RowSelect

A GridMultiSelectMode enumeration value which specifies whether multiple cells or rows can be selected.

Property Paths

You can access this nested property as listed below:

Object Type Path to MultiSelectMode
AdvBandedGridView
.OptionsSelection.MultiSelectMode
AdvBandedGridView
.OptionsSelection.MultiSelectMode
BandedGridView
.OptionsSelection.MultiSelectMode
GridView
.OptionsSelection.MultiSelectMode

Remarks

Multiple row (cell) selection is allowed, and therefore the MultiSelectMode property is in effect if the ColumnViewOptionsSelection.MultiSelect property is set to true.


gridView1.OptionsSelection.MultiSelect = true;
gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;

See the following topics for more information:

Demos

Online Video

DevExpress WinForms: Web Style Row Selection.

See Also