windowsforms-772-controls-and-libraries-data-grid-save-and-restore-layout.md
The Data Grid and other controls allow you to save their layout information to data stores (XML file, stream and system registry) and then restore it. The saved layout includes the visibility, position, and size of visual elements, their sort, group, summary, and filter settings. You can customize which properties need to be saved/restored and perform actions on layout loading.
The Persistence Behavior and Workspace Manager components allow you to save/restore the layout of all DevExpress controls within a form along with that form’s bounds and state.
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.
Important
Set the column and band names to unique values to avoid issues when saving/restoring a View’s layout.
See Also