Skip to main content

GridControl.GetRow(Int32) Method

Gets an object that provides access to the data of a row specified by its handle.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public IRowData GetRow(
    int rowHandle
)

Parameters

Name Type Description
rowHandle Int32

An integer value specifying the desired data row handle.

Returns

Type Description
IRowData

An object implementing the IRowData interface.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

To get an object representing a record in the grid’s underlying data source to which the specified row corresponds, use the IRowData.DataObject property. To get a value in the specified field, use the IRowData.GetFieldValue method.

If the value of the rowHandle parameter exceeds the permissible limits (greater than the GridControl.RowCount - 1), the GetRow property returns null.

See Also