Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
WinGrid 9.1 - DisplayLayout.SaveToXML
posted

Hi There,

We would like to leverage Ultragridlayout.SaveToXML/LoadFromXML to preserve user defined column widths, positions and sorting. If I use PropertyCategories.All for SaveToXML , any subsequent changes to the grid like adding/removing columns are not shown and throws an error randomly.  

1) Ideally I would like to preserve ONLY columns widths, positions and sorting. Should I be using some other value or combinations of values for PropertyCategories???

AppearanceCollection Serialize Appearance Collection
Bands Serialize Bands
Groups Serialize Groups
UnboundColumns Serialize UnBound Columns
SortedColumns Serialize Sorted Columns
ColScrollRegions Serialize Column Scroll Regions
RowScrollRegions SerializeRow Scroll Regions
General Serializes properties exposed off the layout as well as sub objects that are not explicitly listed in this enum.
ValueLists Serialize Value Lists
Summaries Serialize summaries. This will also serialize bands as well.
ColumnFilters Serialize ColumnFilers off the band. This will also serialize bands as well. NOTE: This does not serialize column filters off the RowsCollection.
All Serialize All

2) Is there a builtin method to reset the grid settings to its defaults? 

Thanks,

Ramesh

 

Parents Reply Children
No Data