GridControl.CollapseAllGroups() Method

Collapses all group rows.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll


public void CollapseAllGroups()
Public Sub CollapseAllGroups



This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

To collapse the specified group row, use the GridControl.CollapseGroupRow method.

Before a group row is collapsed, the GridControl.GroupRowCollapsing event is raised, allowing you to cancel the action. After a group row has been collapsed, the GridControl.GroupRowCollapsed event is raised.

To expand group rows, use the GridControl.ExpandAllGroups or GridControl.ExpandGroupRow method.

See Also