PivotGridControl.SavePivotGridToStream(Stream) Method
Saves the Pivot Grid Control’s data and full layout to the specified stream.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream descendant to which data is saved. |
#Remarks
This method saves the original data that is provided by a data store to the specified stream. The data can be loaded later in the same grid control, or another, by creating a PivotFileDataSource object, and assigning it to the PivotGridControl.DataSource property. No connection to the original data store is required.
The SavePivotGridToStream method also saves the full layout along with the data to the stream. When the data is restored, the layout is restored as well, regardless of the layout settings specified by the PivotGridControl.OptionsLayout property.
Note
When creating a Pivot
Note
Saving Pivot