This example demonstrates how to save and restore the client layout of the Grid View control. In the example, the session state stores the grid layout in XML format. You can use any other storage instead of the session state.
The Grid View's ClientLayout event allows you to save the grid layout each time a user changes it and restore this layout on the first page load. Use the LayoutMode event argument to identify whether to save or restore the layout.
- ClientLayoutSerializer.cs (VB: ClientLayoutSerializer.vb)
- ColumnInfo.cs (VB: ColumnInfo.vb)
- GridViewInfo.cs (VB: GridViewInfo.vb)
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
(you will be redirected to DevExpress.com to submit your response)