One of our clients just started using the IG Column Options control for grid. They suddenly requested they wish to save the layout once they have applied all the columns. We use a XML file to add the columns to the grid and all the settings for for the column type are in the xml including the order. I have already written the code to look at the band's columns and pickout the columns that are visible and their order. I wanted to find out what will be the best way to work this where I can change the order after my xml rendering has taken place or is there any way to serialize/deserialize the structure/layout for the grid?
Hello,
The XamDataGrid has a built-in functionality to save/load its customizations. Please follow the link below to see that:
http://community.infragistics.com/forums/p/23987/92700.aspx#92700
Let me know if you have further questions on this.
Alex,
I can't just change the grid/version on the client right now. We are currently using 8.2 UltraWinGrid. If UltraWinGrid does not save how can I move the columns into a specific order after the grid has already been redered.
This is the WPF XamDataGrid's forum. If you are using our Winfows Forms grid - UltraWinGrid, it is better to address that in the Windows Forms Grid Forum
I've moved this thread from the WPF Grids forum to the WinGrid forum.
The DisplayLayout property of WinGrid has Load() and Save() methods, for reading from and writing to a binary format, and LoadFromXml() and SaveAsXml() methods, for doing the same to an XML format. One of these two pairs (likely the XML pair) is likely what you want to use.