Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
885
Persist column width and position to a layout file(Which also contains other charts, ultragrid docked)
posted

I have usecase where I have some 3 to 4 ultragrid and 2 to ultraCharts which are inserted into a UltraGridBagLayoutpanel and showed in a form. Now I am using UltraWinDockManager to persist this info to layout file as a xml file. However it persisting the window sizes and positioing correctly, it is not persisting the columninfos in a grid like column width, column ordering etc. I have found a method in UltraGrid to save to layout file. It will persist to the new layout file otherthan the whole layout file. Is there a way to persist this column info to the same layout file which also persists other panels info.

Can anyone tell me how should I get this?

 

Thanks,
Sanjeev.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Sanjeev,

    You can persist both layouts into the same file if you want to. What you do is create a FileStream. Then you can save the DockManager into that stream and then the grid into the same stream.

    When you load the layouts, you have to do it in the same order in which you saved them. The order is not important but it must be consistent.

Children