Skip to main content

PivotGridControl.SaveCollapsedStateToStream(Stream) Method

Saves the collapsed state of field values to the specified stream.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v22.1.dll


public void SaveCollapsedStateToStream(
    Stream stream


Name Type Description
stream Stream

A Stream descendant to which the collapsed state of field values is saved.


The saved settings can then be restored using the PivotGridControl.RestoreCollapsedStateFromStream or PivotGridControl.RestoreCollapsedStateFromStreamAsync method.


The collapsed states for server mode and regular data sources are stored in different formats and not compatible with each other. Some issues can appear on restoring the collapsed state from different data source modes.

See Also