Back to Devexpress

DataGridView.GetRowItem(Int32) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-dot-getrowitem-x28-system-dot-int32-x29.md

latest1.8 KB
Original Source

DataGridView.GetRowItem(Int32) Method

Returns an object that represents a record in the grid’s underlying data source.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public object GetRowItem(
    int rowHandle
)

Parameters

NameTypeDescription
rowHandleInt32

The row handle.

|

Returns

TypeDescription
System.Object

An object that represents a data source record.

|

Remarks

The GetRowItem method returns an object that is an individual record in a grid’s underlying data source. For example, if a grid’s data source is a collection of Order objects, GetRowItem returns an Order object.

Example

This example shows how to set up the grid to display the Edit Values form when a user taps a cell. The grid is bound to a collection of orders.

  1. Subscribe to the DataGridView.Tap event.

  2. In the event handler:

  3. In the App.xaml.cs file, assign a NavigationPage instance to the Application.MainPage property and add the MainPage content page to the navigation stack (the application’s root page):

The grid now displays the Edit Values form when a user taps a data cell.

See Also

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace