Skip to main content

GridOptionsSelection.MultiSelectMode Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

[DefaultValue(GridMultiSelectMode.RowSelect)]
[XtraSerializableProperty]
public virtual GridMultiSelectMode MultiSelectMode { get; set; }

Property Value

Type Default Description
GridMultiSelectMode RowSelect

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

Available values:

Name Description
RowSelect

Multiple rows can be selected via the mouse and keyboard. Individual cells cannot be selected.

GridMultiSelectMode_Row

CellSelect

Individual cells and blocks of cells can be selected. This option is not supported in Advanced Banded Grid Views.

GridMultiSelectMode_Cell

CheckBoxRowSelect

Multiple rows can be selected via the mouse, keyboard and built-in Check column (which displays check boxes in each row). Individual cells cannot be selected.

GridMultiSelectMode_Row_CheckBox

Property Paths

You can access this nested property as listed below:

Object Type Path to MultiSelectMode
AdvBandedGridView
.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