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?
I was not able to reproduce this behavior with the steps given. Could you please provide a project in which you have faced the mentioned issues? Also, please download the trial of 12.2 just to check if the behavior is the same. Thank you in advance.
It would be helpful to know what behavior youdidget with the steps above? Was the entire column set and multi-line layout reproduced in the second grid?
Hello,
I am getting all the columns as they are in the first WinGrid control. So, this works as expected, just fine. This could really be an old issue, so please test your application with our latest version and let me know of the results.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Here is a sample of the layout I am using, the records have a total of 26 fields, only the ones shown above are "unhidden". Is this perhaps too complex for the method to work? I am unable to test with the latest version at this time but will try to get that version and test when I can.
Jim
FlyingJ said:I was able to combine the .rar files and view the video with 7zip.
Please download all parts from the video file in one folder and then try to Extract the content using RAR. I splite the video file, because it is too big to upload it.
If you have any problems, please write me, I`ll try to find another solution.
Regards
Hello FlyingJ,
As far as I know it is not possible to extract the these columns from your grid and import it into another grid, but maybe one possible solution could be if you are using UltraDataSource to create your columns with appropriate column`s key and then you could use this UltraDataSource (this datasource will be empty, without data) for all your grids.
Let me know if you have any questions.
I was able to combine the .rar files and view the video with 7zip.
I am trying to open the .rar files with 7Zip, it says the .avi files included are "broken". What tool do you recommend for extracting these videos?
Thanks for your reply. I am using only unbound columns in this example. I was under the impression that the wizard was able to save and import both the unbound columns and the layout. Is there a way to save unbound columns in from one grid and then import them into another grid?