Back to Devexpress

DataGridView.SelectionMode Property

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-adeb83e3.md

latest1.6 KB
Original Source

DataGridView.SelectionMode Property

Gets or sets whether a user can select rows. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public SelectionMode SelectionMode { get; set; }

Property Value

TypeDescription
SelectionMode

The selection mode.

|

Available values:

NameDescription
None

A user cannot select rows in the grid.

| | Single |

A user can select one row at a time.

| | Multiple |

A user can select multiple rows at a time.

|

Remarks

You can allow users to select one or multiple rows, or prevent row selection. Set the SelectionMode property to one of the following values:

MultipleA user can select one or multiple rows.SingleA user can select one row at a time.NoneA user cannot select rows in the grid.

For more information, refer to the following section: How to Select Rows in DevExpress Data Grid for .NET MAUI.

See Also

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace