GridControl.GetChildRowCount(Int32) Method

Returns the number of child rows (group or data) contained within the specified group row.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public int GetChildRowCount(
    int rowHandle
)
Public Function GetChildRowCount(
    rowHandle As Integer
) As Integer

Parameters

Name Type Description
rowHandle Int32

An integer value that specifies the group row's handle.

Returns

Type Description
Int32

An integer value that specifies the number of child rows contained within the specified group row.

Remarks

NOTE

The GetChildRowCount method is intended only for group rows and should not be called for regular rows. Though the group row handles are negative (starting from -1), the GetChildRowCount method treats all passed values as group row handles (i.e., it returns the same value for negative and positive values).

GroupRowChildRows

To obtain the handle of the specified child row, use the GridControl.GetChildRowHandle method. A child row is identified by its visible index (position) within the specified group row.

NOTE

If the GetChildRowCount method is called for a non-expanded group row that contains embedded group rows, it returns 0.

To learn more, see Identifying Rows and Cards.

See Also