Is there any way how can I reset changes from end-user in UltraGrid layout (sorting, column order, column visibility) to the the original layout settings defined during design-time of the form.
Thanks
Hi,If you want to preserve the original layout, you can save it as xml like this: this.ultraGrid1.DisplayLayout.SaveAsXml("WinGridLayout.xml");and when needed to restore the layout, you can load it from the xml file: this.ultraGrid1.DisplayLayout.LoadFromXml("WinGridLayout.xml");
Stefaniya
Developer Support Engineer
Infragistics, Inc
http://ko.infragistics.com/support
You could also save the layout into a MemoryStream (and thus avoid creating files on the user's hard drive). Or you could even save it into the grid.DisplayLayout.Layouts collection.