Skip to main content
A newer version of this page is available. .

DataControlBase.SelectionMode Property

Gets or sets whether multiple row/cell selection is enabled. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(MultiSelectMode.None, Handler = "OnSelectionModeChanged")]
public MultiSelectMode SelectionMode { get; set; }

Property Value

Type Description
MultiSelectMode

The multiple selection mode.

Available values:

Name Description
None

Multi-selection is disabled.

Row

Allows you to click a row to add/remove it from the selection.

RowExtended

Allows you to use Ctrl and Shift keys to select multiple rows.

Cell

Allows you to click a cell to add/remove it from the selection.

CellExtended

Allows you to use Ctrl and Shift keys to select multiple cells.

Remarks

Multiple row/cell selection is not allowed if the DataControlBase.NavigationStyle property is set to NavigationStyle.None or the SelectionMode property is set to MultiSelectMode.None.

To enable multiple row selection, set the SelectionMode property to MultiSelectMode.RowExtended.

To enable touch-friendly multiple row selection, set the SelectionMode property to MultiSelectMode.Row.

To enable multiple cell selection, set the SelectionMode property to MultiSelectMode.CellExtended.

To enable touch-friendly multiple cell selection, set the SelectionMode property to MultiSelectMode.Cell.

See Also