Skip to main content

DataGridView.SelectionMode Property

Gets or sets whether end users can select rows in the grid. This is a bindable property.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

Declaration

public SelectionMode SelectionMode { get; set; }

Property Value

Type Description
SelectionMode

A value that specifies whether a row can be selected in the grid.

Available values:

Name Description
None

A user cannot select rows in the grid.

Single

A user can select one row at a time.

Remarks

When a user taps a data row in the grid, this row becomes selected. You can set the SelectionMode property to SelectionMode.None to prevent users from selecting rows.

Grid Data Rows

To get or set the grid’s selected row, use the SelectedRowHandle property. The SelectedItem property returns an object that specifies a data source record to which the row selected in the grid corresponds. After the grid’s selection is changed, the DataGridView.SelectionChanged event occurs.

See Also