wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-dot-isgrouprowexpanded-x28-system-dot-int32-x29.md
Indicates whether the specified group row is expanded.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool IsGroupRowExpanded(
int rowHandle
)
Public Function IsGroupRowExpanded(
rowHandle As Integer
) As Boolean
| Name | Type | Description |
|---|---|---|
| rowHandle | Int32 |
An integer value that specifies the row’s handle. Group row handles are negative (starting from -1 ).
|
| Type | Description |
|---|---|
| Boolean |
true if the specified row is expanded; otherwise, false.
|
To learn more, see Obtaining Row Handles and Expanding and Collapsing Group Rows.
The following code snippets (auto-collected from DevExpress Examples) contain references to the IsGroupRowExpanded(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.
if(this._Grid.IsGroupRowHandle(rowHandle)) {
if(!this._Grid.IsGroupRowExpanded(rowHandle)) {
rowHandles.AddRange(GetDataRowHandlesInGroup(rowHandle));
wpf-grid-select-child-rows-in-groups-on-click/CS/GridGroupSelect/GroupChildSelector.cs#L47
&& grid.IsGroupRowHandle(childRowHandle)
&& grid.IsGroupRowExpanded(childRowHandle)) {
SelectChild(grid, childRowHandle);
If _Grid.IsGroupRowHandle(rowHandle) Then
If Not _Grid.IsGroupRowExpanded(rowHandle) Then
rowHandles.AddRange(GetDataRowHandlesInGroup(rowHandle))
wpf-grid-select-child-rows-in-groups-on-click/VB/GridGroupSelect/GroupChildSelector.vb#L51
Dim childRowHandle As Integer = grid.GetChildRowHandle(groupRowHandle, i)
If GetMode(grid.View) = ChildSelectionMode.Hierarchical AndAlso grid.IsGroupRowHandle(childRowHandle) AndAlso grid.IsGroupRowExpanded(childRowHandle) Then
SelectChild(grid, childRowHandle)
See Also