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
Declaration
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.