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.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[DP(MultiSelectMode.None, Handler = "OnSelectionModeChanged")]
public MultiSelectMode SelectionMode { get; set; }
#Property Value
Type | Description |
---|---|
Multi |
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. |
Row |
Allows you to use |
Cell | Allows you to click a cell to add/remove it from the selection. |
Cell |
Allows you to use |
#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.