DataGridView.GetChildRowCount(Int32) Method
Returns the number of data rows in a specific group.
Namespace: DevExpress.Maui.DataGrid
Assembly: DevExpress.Maui.DataGrid.dll
NuGet Package: DevExpress.Maui.DataGrid
Declaration
public int GetChildRowCount(
int groupRowHandle
)
Parameters
Name | Type | Description |
---|---|---|
groupRowHandle | Int32 | An integer value starting with -1 that specifies a group row handle. |
Returns
Type | Description |
---|---|
Int32 | An integer value that specifies the number of rows in a group. |
Remarks
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.
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.