I am working with Microsoft Visual Studio .Net 2008 and Infragistics Net Advantage for .Net Volume 1 CLR 2.0 und Windows Vista with Service Pack 2.
For designing the Grid, i work with the grid-Designer. I manually define the schema and put fill the datas by runtime. This method works with older versions good.
But now, I have the problem, that perhaps on Friday I design the grid, I test it, it works fine all is good.
On Monday I do an additional grid in a seccond tab of this form, it works fine, i close the form, open it again, go to the tabpage from Friday and all relations and designs from Friday are lost. - what happens?
This morning, I had 3 correct grids in three tabpages and it works fine. I only do an additional ultradropdownlist and all designs from the last days are lost.
Yes, you can save the layout of the grid. There are Save and Load methods on the grid's DisplayLayout. If you want to save the layout at design-time, you can use the Layout Wizard. Just right click on the grid on the designer form and select "Layout Wizard".
Is there a possibility to save the designed layouts and use this in the initalize Layout part?
no I yesterday talked about this problem with a friend who also use ultragrid since some versions, and he confirmed this problem. Everytime, if you use a grid with relations in tabpages, they loose the design, which is made with the designer, when you start the debug mode more than once without doing changes in the designer of the grid.
To avoid this bug of the tool you must everytime after coming back from the debug-Mode start the designer of the grid and close it. So for my case: I have 4 Tabpages, 3 of them have ultragrids with relations between the tables, everytime when I start the debug mode, I have to open and close the designer of the three grids and every thing is good.
This bug was already posted to Infragistics some Versions before the actual, but nothing changed in the actual Version. So the result is: Do not use ultragird with tables with relations within tabpages!
Even the infragistics tabpage has this error!!
CarlaKoehler said:Net Advantage for .Net Volume 1
Volume 1 of what year?
CarlaKoehler said: But now, I have the problem, that perhaps on Friday I design the grid, I test it, it works fine all is good. On Monday I do an additional grid in a seccond tab of this form, it works fine, i close the form, open it again, go to the tabpage from Friday and all relations and designs from Friday are lost. - what happens? This morning, I had 3 correct grids in three tabpages and it works fine. I only do an additional ultradropdownlist and all designs from the last days are lost.
If your layout was lost, it probably means that the grid recieved a reset notification from the data source for some reason. This can happen if your data source was changed in some way, like if you added a column or a band.
For this reason, it's usually a good idea to use the Layout Wizard to save the grid's Layout to a file or into the LayoutsCollection. Or else, use the InitializeLayout event of the grid to set up your layout, rather than doing it at design-time.