RestoreLayout - cCJGrid
Restores the grid column layout to its original design time layout
Type: Procedure
Syntax
Procedure RestoreLayout
Call Example
Send RestoreLayout
Description
RestoreLayout restores the grid column layout with the original object created layout settings that you created in your code. It provides a way to restore your grid back to its "original factory defaults". By default, the header context menu has an option that calls this method.
When a grid is first activated, a snapshot of the grid layout is taken and stored. This occurs before LoadEnvironment is called, which means that this snapshot is taken before any user preferences are loaded. When RestoreLayout is called, this original layout is restored.
It is an error to call this when the grid is not activated.