Skip to main content

TcxCustomVerticalGrid.StoreToRegistry(string,Boolean) Method

Stores the grid layout to the Windows registry.

Declaration

procedure StoreToRegistry(const AStorageName: string; AReCreate: Boolean = True);

Parameters

Name Type
AStorageName string
AReCreate Boolean

Remarks

You can use the StoreToRegistry method to store the vertical grid’s layout to the Windows registry. The method stores the PaintStyle, RowHeaderWidth and ValueWidth property values and the row structure: row indexes and their parent indexes, row heights and their expanded/collapsed status.

Adding the AStorageName suffix to the HKEY_CURRENT_USER key forms the registry path.

The AReCreate parameter specifies whether the information under the AStorageName suffix will be overwritten. Set the AReCreate parameter to False to store multiple layouts under the single AStorageName suffix.

To restore the grid layout from the registry, you should use the RestoreFromRegistry method.

Alternatively, you can store the grid layout to an INI file or to a stream using the StoreToIniFile and StoreToStream methods respectively.

See Also