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

VGridControlBase.OptionsLayout Property

Provides access to options that specify how a control’s layout is stored to and restored from a data store (a stream, xml file or the system registry).

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public VGridOptionsLayout OptionsLayout { get; }

#Property Value

Type Description
VGridOptionsLayout

An object that contains options for controlling how the layout is stored and restored.

#Remarks

Use the VGridControlBase.SaveLayoutToRegistry, VGridControlBase.SaveLayoutToStream and VGridControlBase.SaveLayoutToXml methods to save the control’s layout. To restore the saved layout, use the VGridControlBase.RestoreLayoutFromRegistry, VGridControlBase.RestoreLayoutFromStream and VGridControlBase.RestoreLayoutFromXml methods.

The options provided by the OptionsLayout property are in effect for the SaveLayoutTo… and RestoreLayoutFrom… method overloads that do not have a parameter of the OptionsLayoutBase type.

Tip

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

See Also