[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
  [Expand]Application Appearance and Skin Colors
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Tooltip Management
  [Collapse]Saving and Restoring Layouts to a File, Stream and System Registry
    How to: Save a control's layout to a stream
    How to: Save a control's layout to the system registry
    Layout Options (XtraGrid, XtraPivotGrid)
    How to: Save a control's layout to a XML file
    Upgrading Layout
   Clipboard - Copy and Paste Operations. Data Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Save a control's layout to the system registry

The following sample code demonstrates a way of saving a view's layout (in XtraGrid) to a specific system registry path and then restoring it.

You can define absolute and relative registry keys as the parameter. For example, specifying "Software\MyCompany\MyProject" as a partial key will result in saving the settings to the "HKEY_CURRENT_USER\Software\MyCompany\MyProject" path. You can also specify the entire key if you need to store the layout to another root key.

Is this topic helpful?​​​​​​​