GridSerializationOptions Class
Contains options that specify how column specific settings are stored to and restored from a stream or file in XML format.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Remarks
The GridSerializationOptions provides two options: DataControlSerializationOptions.AddNewColumns and DataControlSerializationOptions.RemoveOldColumns. The first option specifies whether the columns that currently exist in the grid, but do not exist in a layout when it's restored, should be retained. The second option specifies whether the columns that exist in a layout when it is restored but don't currently exist in the grid, should be discarded.
To save the grid layout, use the DataControlBase.SaveLayoutToStream or DataControlBase.SaveLayoutToXml method. To load the layout, use the DataControlBase.RestoreLayoutFromStream or DataControlBase.RestoreLayoutFromXml method.
To learn more, see Saving and Restoring Layout.
NOTE
To correctly save and restore the grid layout, grid columns should be uniquely identified, using the x:Name attribute.