Hi Team,
We are parsing the XML that gets generated when layouts are saved. How can we identity the column positions in the grid so that we can use it .
Example: ColumnA , ColumnB , ColumnC are there in the grid
I want to retrieve the column name and its order.
Thanks
Chandu
Hello ,
Thank you for posting into our forum.
First off, I don't recommend trying to parse the XML.Instead Just create an UltraGridLayout variable and load the layout into it. That way you can load the layout into memory without loading it into a grid. Then you can simply examine the actual band to determine the order.
And if you are not using RowLayouts,than you could get all of the columns in the band and then sort them by the column.Header.VisibleIndex. But there could be duplicate indices, so as a fallback, you would use the column.Index. Anyway, you start with this:"
UltraGridLayout layout = new UltraGridLayout();layout.LoadFromXml(filename);
Please let me know if you need further assistance.