We are serializing the grid setting using LoadFromXML / SaveToXML API. However when there are changes to columns (add/remove) the previous settings cannot be restored. Another problem scenario is permission for viewing the columns may. In this scenario even though the column is set as hidden, it becomes visible to the user.
Using these serialization API lots of user preferences is being saved. So I don't want to write custom code to manage it. * Is there other way to manage the saving of user preferences? * Are there any event hooks or customization than can be done using the Infragistics API. * Is there any documentation of the XML file generated? Is it a good idea to manipulate the XML file?
bhavesh_busa said: * Is there other way to manage the saving of user preferences?
No, not built-in to the control, anyway.
bhavesh_busa said: * Are there any event hooks or customization than can be done using the Infragistics API.
I'm not sure I follow you here. One thing you can do is load the Layout into an UltraGridLayout object, rather than into a grid. You can then examine the bands and columns in the layout. This might help you deal with any problems.
bhavesh_busa said: * Is there any documentation of the XML file generated? Is it a good idea to manipulate the XML file?
No, I would advise against modifying the XML directly. You would be better off loading the layout into a layout variable and modifying it from there and then saving it out again.