PivotGridControl.CollapseAllColumns() Method
Collapses all columns.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v19.1.dll
Declaration
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).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CollapseAllColumns() 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.