VGridControlBase.LayoutVersion Property
OBSOLETE
Use 'OptionsLayout.LayoutVersion' instead
Gets or sets the version of the control’s layout.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use 'OptionsLayout.LayoutVersion' instead")]
public virtual string LayoutVersion { get; set; }
Property Value
Type | Description |
---|---|
String | A string that specifies the version of the layout in the control. |
Remarks
You should assign versions to layouts if you need to customize the control after an earlier version of the control’s layout has been loaded from data store (a stream, xml file or system registry) and applied to the control.
- When designing a new version of the control’s layout set the version via the LayoutVersion property. At the least, you need to ensure that the version of the current control’s layout differs from the version of the saved layouts.
- Handle the VGridControlBase.LayoutUpgrade event to implement a routine that will upgrade old layouts. This event occurs after a previously saved layout has been loaded and only if its version doesn’t match the version of the current control’s layout.
Note
Rows which do not exist in the layout being loaded from the data store are destroyed.
See Also