Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.CollapseAllRows() Method

In This Article

Collapses all rows.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

public void CollapseAllRows()

#Remarks

This method collapses all rows that correspond to Row Fields. To collapse all rows that correspond to a specific Row Field, use the PivotGridFieldBase.CollapseAll method. The PivotGridFieldBase.CollapseValue method allows you to collapse individual rows.

To collapse all rows asynchronously, use the PivotGridControl.CollapseAllRowsAsync method.

To expand all rows, use the PivotGridControl.ExpandAllRowsAsync (asynchronous) or PivotGridControl.ExpandAllRows (synchronous) method.

To expand or collapse all columns asynchronously, use the PivotGridControl.ExpandAllColumnsAsync and PivotGridControl.CollapseAllColumnsAsync methods, respectively (or the PivotGridControl.ExpandAllColumns and PivotGridControl.CollapseAllColumns methods to do this synchronously).

See Also