Back to Devexpress

DataGridView.SelectedRowHandle Property

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

latest1.7 KB
Original Source

DataGridView.SelectedRowHandle Property

Gets or sets the selected row handle. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public int SelectedRowHandle { get; set; }

Property Value

TypeDefaultDescription
Int320

The row handle.

|

Remarks

When a user taps a data row in the grid, this row becomes selected.

Use the SelectedRowHandle property to obtain or set a row currently selected in the grid. 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.

To prevent users from selecting rows, set the SelectionMode property to SelectionMode.None.

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