Skip to main content

VGridControlBase.SaveLayoutToRegistry(String, OptionsLayoutBase) Method

Saves the control’s layout to the specified system registry path, using the specified options.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v23.1.dll

NuGet Package: DevExpress.Win.VerticalGrid


public virtual void SaveLayoutToRegistry(
    string path,
    OptionsLayoutBase options


Name Type Description
path String

A string value specifying the system registry path.

options OptionsLayoutBase

An object that specifies which options must be saved.


Use the SaveLayoutToRegistry method to save the control’s layout to the system registry. You can restore these settings by a VGridControlBase.RestoreLayoutFromRegistry method call.

The control’s layout is saved to the path specified by the path parameter. You are allowed to define whole and partial registry keys. For instance, if you define a partial key, “Software\MyCompany\MyTool" the full path will be as follows: “HKEY_CURRENT_USER\Software\MyCompany\MyTool". If you wish to store a layout in a different root key, you should define the entire path, for instance: “HKEY_LOCAL_MACHINE\Software\MyCompany\MyTool".

See Also