A newer version of this page is available. Switch to the current version.

XRPivotGrid.RestoreLayoutFromStream(Stream) Method

Restores a pivot grid's layout from the specified stream.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public void RestoreLayoutFromStream(
    Stream stream
Public Sub RestoreLayoutFromStream(
    stream As Stream


Name Type Description
stream Stream

A Stream descendant from which the pivot grid's settings are read. If null (Nothing in Visual Basic), an exception is raised.


Use the RestoreLayoutFromStream method to load the pivot grid's layout from the stream to which the layout was saved.

The XRPivotGrid.OptionsLayout property controls which settings should be restored from the stream.


The following sample code saves a Pivot Grid Control's layout to a memory stream and then restores it.

System.IO.Stream stream;
stream = new System.IO.MemoryStream();
stream.Seek(0, System.IO.SeekOrigin.Begin);

// ...
stream.Seek(0, System.IO.SeekOrigin.Begin);
See Also