Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Save and Restore Grid Layout

  • 2 minutes to read

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.

#General Concepts

#Grid Control Specifics

#Member Table

#Task-Based Help

See Also