Skip to main content

DataGridView.SelectionMode Property

Gets or sets whether end users can select rows in the grid.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

[XtraSerializableProperty]
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
None
Single

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