Skip to main content
A newer version of this page is available. .

GridControl.GetParentRowHandle(Int32) Method

Returns the handle of the group row that owns the specified row.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public int GetParentRowHandle(
    int rowHandle
)

Parameters

Name Type Description
rowHandle Int32

An integer value that specifies the child row’s handle.

Returns

Type Description
Int32

An integer value that specifies the parent group row’s handle.

Remarks

Group row handles are negative (starting from -1). The GetParentRowHandle method returns DataControlBase.InvalidRowHandle in the cases listed below:

  • the specified handle corresponds to a root group row
  • the grid’s data isn’t grouped
  • there is no row within the specified handle.

To learn more, see Obtaining Row Handles.

Note

In server mode, the GetParentRowHandle returns the DataControlBase.InvalidRowHandle value if data is grouped by two or more columns.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetParentRowHandle(Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also