Back to Devexpress

DataGridView.GetChildRowCount(Int32) Method

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

latest2.3 KB
Original Source

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

csharp
public int GetChildRowCount(
    int groupRowHandle
)

Parameters

NameTypeDescription
groupRowHandleInt32

An integer value starting with -1 that specifies a group row handle.

|

Returns

TypeDescription
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.

See Also

GetChildRowHandle(Int32, Int32)

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace