Skip to main content
A newer version of this page is available. .

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.v18.2.dll

Declaration

public virtual void SaveLayoutToRegistry(
    string path,
    OptionsLayoutBase options
)

Parameters

Name Type Description
path String

A string value specifying the system registry path.

options OptionsLayoutBase

An object that specifies which options must be saved.

Remarks

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