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
40
Is DisplayLayout.Load on the fly?
posted

When I am using an UltraGrid control, I am saving our default settings inside of an UltraGridLayout object, and I would like to have the ability to go back to these settings on the fly.  So when a user moves around columns, hides columns, ect. when they invoke a reset of the settings I would like to go back to what is saved in the UltraGridLayout object.

I am currently invoking the DisplayLayout.Load method as follows to reset the settings:

myGrid.DisplayLayout.Load(_defaultSettings, PropertyCategories.All);

This does reset the settings on the grid if I were to close the form and reopen it, but it does not update the grid on the fly.  Is this the right method to be using, or is there another way of doing this?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    I think you have to call DisplayLayout.CopyFrom if you are loading a layout from another layout. The Load methods doesn't take a layout, it takes a stream - unless thre's a new overload I am unaware of.

Children