Is there a way to save the xml of an UltraGrid's appearance without saving the ValueLists? I want to save the order, size, visibility of the columns but not save the items in the ValueLists. I've looked at the PropertyCategories options that can be used in SaveAsXml(), but can't find the right combination for what I'm looking for. Any ideas?
Hi Brent,
You can exclude ValueLists from the layout by omitting the corresponding flag from PropertyCategories. So for example the PropertyCategories combination that you can use is something like
Infragistics.Win.UltraWinGrid.PropertyCategories.All & ! Infragistics.Win.UltraWinGrid.PropertyCategories.ValueLists
Please let me know if you have any questions.
Sincerely,
Sahaja Kokkalagadda
Associate Software Developer, Windows Forms
http://ko.infragistics.com/
Hello Sahaja,
Thanks for the suggestion. I tried doing that, but I get the error "Operator '!' cannot be applied to operand of type 'PropertyCategories'" My code is below. Any ideas?
grid.DisplayLayout.SaveAsXml(stream, PropertyCategories.All & !PropertyCategories.ValueLists);