Hi guys, seems like every sample of saving or loading a layout uses the All property category. I would like to be more selective and have all but Appearance and ValueLists, but I'm not sure how to give the SaveAsXML method multiple categories.
Any help would be greatly appreciated.
Oh, yeah, and if it's in vb, all the better, although I can translate pretty well if not.
Thanks in advance.
Hello Philip,
Thank you for posting in our forum.
SaveAsXml method of UltraGrid has four overloads. Two of this overloads include a PropertyCategories flag which determines which properties should be serialized. More about this overload you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGridLayout~SaveAsXml(String,PropertyCategories).html.
Please note in order to serialize everything but the appearance and ValueLists you may use code like this:
Me.UltraGrid1.DisplayLayout.SaveAsXml(layoutAsXml, _ PropertyCategories.Bands Or _ PropertyCategories.ColScrollRegions Or _ PropertyCategories.ColumnFilters Or _ PropertyCategories.General Or _ PropertyCategories.Groups Or _ PropertyCategories.RowScrollRegions Or _ PropertyCategories.SortedColumns Or _ PropertyCategories.Summaries Or _ PropertyCategories.UnboundColumns)
PropertyCategories.Bands Or _
PropertyCategories.ColScrollRegions Or _
PropertyCategories.ColumnFilters Or _
PropertyCategories.General Or _
PropertyCategories.Groups Or _
PropertyCategories.RowScrollRegions Or _
PropertyCategories.SortedColumns Or _
PropertyCategories.Summaries Or _
PropertyCategories.UnboundColumns)
More about PropertyCategories enumeration you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.PropertyCategories.html.
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.
Thank you, I dug around a little bit and found it, but thank you for the quick response