We currently save grid layouts in a database using the .SaveAsXML method. We have added columns to the grid due to more info in the database. Is there a way to update existing layouts with the new columns?
Hi,
I don't think so. I mean... I'm sure it's possible to modify the XML. But personally, I would not want to attempt it. The XML for a serialized column is very complex and trying to manually modify it is no small undertaking.
It would be a lot easier to create a dummy grid with a dummy data source (like UltraDataSource) that just has the structure you want, and then load the layout into the grid, modify it, and re-save it.
Please accept my apologies, I completely misstated my question......We actually save the layouts in the XML format in a SQL Database. When the user loads the grid, we pull the layout from the table. Is there any way to modify the XML in the database to show the new columns in the layout.?
I would think if you simply bind the grid, then load the layout, the new columns should still be there. At the very least, all that would happen is that the new columns would be hidden, in which case, you could just make them visible by setting the Hidden property to false.