Back to Devexpress

DataGridView.GetChildRowHandle(Int32, Int32) Method

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

latest2.4 KB
Original Source

DataGridView.GetChildRowHandle(Int32, Int32) Method

Returns the handle of a row at the specified position within the specified group.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public int GetChildRowHandle(
    int groupRowHandle,
    int childIndex
)

Parameters

NameTypeDescription
groupRowHandleInt32

A negative integer starting with -1 that specifies a group row handle.

| | childIndex | Int32 |

A zero-based integer that specifies a data row’s position within the group.

|

Returns

TypeDescription
Int32

A row handle.

|

Remarks

The GetChildRowHandle(Int32, Int32) method allows you to obtain a data row handle. Pass the group row handle as the first parameter and the zero-based index of the data row in this group as the second parameter.

If the specified group row handle does not exist or the specified group does not contain a data row at the specified position, the GetChildRowHandle(Int32, Int32) method returns the InvalidRowHandle property value.

The GetChildRowCount(Int32) method allows you to obtain the number of data rows within a specific group. This method accepts a group row handle as a parameter. Group row handles are integer numbers in reverse order starting with -1.

Note

Do not confuse handles for data and group rows. Data row handles are integer numbers in direct order starting with zero.

See Also

GetChildRowCount(Int32)

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace