Back to Devexpress

BaseView.OptionsLayout Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-456f9990.md

latest2.7 KB
Original Source

BaseView.OptionsLayout Property

Provides options that control how the current View’s layout is stored to/restored from a stream, xml file or system registry.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Data")]
public OptionsLayoutBase OptionsLayout { get; }
vb
<DXCategory("Data")>
Public ReadOnly Property OptionsLayout As OptionsLayoutBase

Property Value

TypeDescription
OptionsLayoutBase

A OptionsLayoutBase descendant, providing options that control how the layout is stored and restored.

|

Remarks

The OptionsLayout property is overridden by derived classes, to provide the appropriate functionality.

The LayoutView doesn’t support restoring a field if there is no corresponding bound column. The OptionsColumnLayout.RemoveOldColumns option must be set to true.

Tip

Handle the PropertySerializing and PropertyDeserializing events for fine-grained control over layout saving/restoring.

See the Layout Options (XtraGrid, XtraPivotGrid) topic, for more information.

See Also

Save and Restore Grid Layout

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

Save and Restore Layouts of DevExpress controls

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace