Back to Devexpress

PivotGridOptionsLayout.StoreLayoutOptions Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionslayout-9ed99a77.md

latest4.0 KB
Original Source

PivotGridOptionsLayout.StoreLayoutOptions Property

Gets or sets whether options that specify how a pivot grid layout is stored/restored from a storage are stored/restored from the storage together with the layout.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
public virtual bool StoreLayoutOptions { get; set; }
vb
<DefaultValue(False)>
Public Overridable Property StoreLayoutOptions As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , if options that specify how a pivot grid layout is stored/restored from a storage are stored/restored from the storage together with the layout; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to StoreLayoutOptions
WinForms ControlsPivotGridControl

.OptionsLayout .StoreLayoutOptions

| | .NET Reporting Tools | XRPivotGrid |

.OptionsLayout .StoreLayoutOptions

|

Remarks

The StoreLayoutOptions property determines if options that specify how a pivot grid layout is stored/restored from a storage are included in the control’s layout when it is saved to a storage (a stream, XML file or the system registry). For XtraPivotGrid, these are options accessed via the PivotGridControl.OptionsLayout property.

If the OptionsLayoutGrid.StoreAllOptions property is set to true , these options are included in the control’s layout, regardless of the StoreLayoutOptions property value.

To specify whether to store a pivot grid layout, use the OptionsColumnLayout.StoreLayout property. You can access an OptionsColumnLayout object that exposes this property via the OptionsLayoutGrid.Columns property.

If the layout is being restored from a storage and the StoreLayoutOptions option is set to true , the control will try to load the appropriate options from storage. If these options cannot be found in the stored layout, the corresponding pivot grid options will be set to their default values.

To learn more, see Layout Options (XtraGrid, XtraPivotGrid).

See Also

OptionsLayout

StoreAllOptions

Layout Options (Grid, Pivot Grid, TreeList, Vertical Grid)

StoreLayout

PivotGridOptionsLayout Class

PivotGridOptionsLayout Members

DevExpress.XtraPivotGrid Namespace