I am really exasperated about this. I have a windows forms project in which I am using UltraGrid to present and manage information. I spend a lot of time manually creating column definitions and dragging things around to get multi line layouts the way we need them.
It all works ok, until sometime for some reason I have not been able to determine, I re-open the form that has been saved in TFS, and the columns and layouts are gone. I can find them in previous versions in TFS, but the way the UltraGrid Designer creates the definitions in the form.designer.cs file is such that there is no way to bring the layouts and columns back except to manually re-create them.
Is there a way I can store these columns and layouts to a file so that when they disappear, I can just read them back from a file?
Help
Jim Frisby
Hello Jim,
You could use the 'Save()' or 'SaveAsXml()' methods on the grid's layout, like this:
ultraGrid1.DisplayLayout.Save("filename");
Please feel free to let me know if I misunderstood you or if you have any other questions.
The problem I am having is that the design time definition of the entire column and layout for the grid gets lost from the <formname>.designer.cs file. If I use "Save" at runtime, how would I get the definition back into the design files? Is that even possible?
Does "SAVE" have a complementry method "LOAD" ? If so, does it create the columns as well as the arrangement? Would I have to use one of the grids events to load them before the grid gets populated with data?