Skip to main content

DataControlSerializationOptions 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.Core.dll

#Declaration

public class DataControlSerializationOptions

#Remarks

The DataControlSerializationOptions 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 is restored, should be retained. The second option specifies whether the columns that exist in a layout when it is restored but do not 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.

#Examples

#Inheritance

Object
DataControlSerializationOptions
See Also