Skip to main content

PivotGridFieldBase.CollapseAll() Method

Collapses all rows/columns that correspond to the current column field or row field.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v24.1.Core.dll

NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

public void CollapseAll()

Remarks

Use the PivotGridControl.ChangeFieldExpandedAsync method to collapse or expand all values of a particular field, asynchronously. For more information about asynchronous mode, see Asynchronous Mode.

To collapse a specific field value, use the PivotGridFieldBase.CollapseValue method. To expand field values, use the PivotGridFieldBase.ExpandValue and PivotGridFieldBase.ExpandAll methods.

Field values can be collapsed and expanded by end-users if the field’s PivotGridFieldOptions.AllowExpand property is set to true.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CollapseAll() 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.

See Also