Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

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

#Declaration

[DXCategory("Data")]
public OptionsLayoutBase OptionsLayout { get; }

#Property Value

Type Description
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