Saving and Restoring Layouts
- 2 minutes to read
This topic contains information on saving and restoring layouts in the Grid Control. The term “layout” encompasses all the settings that control the visibility and size of visual elements, their appearance settings, filter, sorting, grouping and summary information, etc. Grid Control provides methods used to save the layout of Views to a data store (an XML file, stream or the system registry) and then to restore it. So, it is possible to save layouts between application runs. When end-users run the application again, the View will have the same layout as the last time they used it.
Grid Control also allows you to control how the layout is saved/restored. See the links below for more information.
Note
When restoring a layout during a form load (for instance, in your Form.Load event handler), you may need to call the GridControl.ForceInitialize method prior to the layout restoration. See this method to learn more.
General Concepts
Grid Control Specifics
Member Table
Task-Based Help
- How to: Save a Grid’s Layout Between Application Runs
- How to: Save a View’s Layout to and Restore it from a Stream
- How to: Save a View’s Layout to and Restore it from the Registry
For more examples see the Examples: Miscellaneous topic.