Back to Devexpress

DataGridView.SelectedItem Property

mobilecontrols-devexpress-dot-xamarinforms-dot-datagrid-dot-datagridview-7b13c34b.md

latest1.8 KB
Original Source

DataGridView.SelectedItem Property

Returns an object that specifies a data source record to which a data row currently selected in the grid corresponds.

Namespace : DevExpress.XamarinForms.DataGrid

Assembly : DevExpress.XamarinForms.Grid.dll

NuGet Package : DevExpress.XamarinForms.Grid

Declaration

csharp
public object SelectedItem { get; set; }

Property Value

TypeDescription
Object

An object that specifies an individual record of a data source bound to the grid.

|

Remarks

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

To obtain a handle of the grid’s selected data row, use the SelectedRowHandle property. 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.

See Also

DataGridView Class

DataGridView Members

DevExpress.XamarinForms.DataGrid Namespace