wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-dot-collapsegrouprow-x28-system-dot-int32-x29.md
Collapses the specified group row.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool CollapseGroupRow(
int rowHandle
)
Public Function CollapseGroupRow(
rowHandle As Integer
) As Boolean
| Name | Type | Description |
|---|---|---|
| rowHandle | Int32 |
An integer value that specifies the group row’s handle. Group row handles are negative (starting from -1 ).
|
| Type | Description |
|---|---|
| Boolean |
true if the specified group row has been collapsed; otherwise, false.
|
To learn more, see Expanding and Collapsing Group Rows.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CollapseGroupRow(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.
groupRow = grid.GetParentRowHandle(childRow);
grid.CollapseGroupRow(groupRow);
}
groupRow = Me.grid.GetParentRowHandle(childRow)
Me.grid.CollapseGroupRow(groupRow)
End If
See Also