I am trying to export the settings of a grid to an XML file. I used grid.DisplayLayout.SaveAsXML. However it was not exporting everything. When I used the grid.DisplayLayout.LoadFromXML to restore the settings, it just doesn't look the same.
Is there any other ways to do what I want? Thanks.
Hi,
Can you be more specific? What exactly do you want to save that is not being saved?
The Save/Load methods on the layout only save column- and band-level properties. The grid will never save anything related to the rows or the data, because that would mean copying the data along with it which would be a huge waste of hard drive space and wouldn't work, anyway, since the data might change the next time the application is run.
I will post two screen shots. One is how the grid originally looks like and I save the layout at that time, and the second is when I load the layout immediately after I save it, so you can tell the difference.