VGridControlBase.LayoutVersion Property

Obsolete. Gets or sets the version of the control's layout.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

[Browsable(false)]
[Obsolete("Use 'OptionsLayout.LayoutVersion' instead")]
public virtual string LayoutVersion { get; set; }
<Browsable(False)>
<Obsolete("Use 'OptionsLayout.LayoutVersion' instead")>
Public Overridable Property LayoutVersion As String

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