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
)
Public Function GetRow(
    rowHandle As Integer
) As IRowData

Parameters

Type Name Description
Int32 rowHandle

An integer value specifying the desired data row handle.

Returns

Type Description
IRowData

An object implementing the IRowData interface.

Remarks

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