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.CollapseAllColumns() Method

In This Article

Collapses all columns.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

public void CollapseAllColumns()

#Remarks

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

To collapse all columns asynchronously, use the PivotGridControl.CollapseAllColumnsAsync method.

To expand all columns, use the PivotGridControl.ExpandAllColumnsAsync (asynchronous) or PivotGridControl.ExpandAllColumns (synchronous) method.

To expand or collapse all rows asynchronously, use the PivotGridControl.ExpandAllRowsAsync and PivotGridControl.CollapseAllRowsAsync methods, respectively (or the PivotGridControl.ExpandAllRows and PivotGridControl.CollapseAllRows methods to do this synchronously).

See Also