PivotGridControl.SaveLayoutToStream(Stream) Method
In This Article
Saves the PivotGridControl's layout to the specified stream.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream descendant to which the pivot grid's layout is written. |
#Remarks
To restore the grid layout previously saved by the SaveLayoutToStream method, use the PivotGridControl.RestoreLayoutFromStream or PivotGridControl.RestoreLayoutFromStreamAsync method.
Note that you should specify unique names for all pivot grid fields to correctly save and restore the layout. You can do this using the PivotGridField.Name property.
To learn more, see Save and Restore Layout.
See Also