Hi,
We have a use case where we need to read an XML file (created with the Grid's DisplayLayout.SaveAsXML method) and apply the settings in that file to a single band. The XML file contains settings for the entire grid (the grid contains 3 bands) which is what we want 90% of the time; however, now we have a requirement that we may only want to apply the settings for one of the bands (depending on what the user has selected).
I've been playing around with this and I realize that I can load the XML file into a temporary UltraGridLayout object. Then, I can use that object to manually set ALL of the properties on all of the columns (font, format, alignment, width, visibility, whether or not it is filtered, whether or not it is sorted, etc, etc, etc) on the appropriate band. I am wondering if there is an easier/quicker way to do this.
I guess what I'm asking is, whether or not there is a simple way to apply the settings from the XML just to one specific band in the grid (and leave the over bands untouched).
Thanks,Jason
Hi Jason,
Thank you for posting in our forums.
After research this it seems that the way that you are using is the best approach for this task since the loading and saving of the layout currently can’t be done on a band by band basis. If you want such functionality built in the grid you can log a product idea for this from our product ideas site.
Please let me know if you have any additional questions.