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.SavePivotGridToStream(Stream, Boolean) Method

Saves the Pivot Grid Control’s data and full layout to the specified stream, and allows the data to be compressed.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

public void SavePivotGridToStream(
    Stream stream,
    bool compress
)

#Parameters

Name Type Description
stream Stream

A Stream descendant to which data is saved.

compress Boolean

true to compress the output stream; otherwise, false.

#Remarks

You can disable data compression if this affects data saving/loading performance. For data compression, this method uses the Deflate algorithm (a combination of the LZ77 algorithm and Huffman coding). See the DeflateStream topic in MSDN, for more details.

For information on using the SavePivotGridToStream method, see another method overload.

Note

Saving PivotGrid’s data to a file or stream is not supported for Server Mode and OLAP data sources.

See Also