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
910
Custom column order in UltraGridColumnChooser
posted

Hi,

is there a way to set a custom column order in the UltraGridColumnChooser?

We want to show the original display layout (which we backup before applying a new one).

Thanks,
Michael 

Parents
No Data
Reply
  • 4625
    Offline posted

    Hi Michael,

    Thank you for posting in our forums!

    As you already noticed, by default the ColumnChooser displays UltraGrid’s columns alphabetically. In order to change this behavior, you can follow the next steps.

    Before column chooser dialog is displayed it adds an UltraGrid to its child controls. The way to access this UltraGrid is via handling BeforeColumnChooserDispayed event handler on your primary UltraGrid. Once you get ColumnChooser’s UltraGrid you can handle InitializeLayout event handler and then figure out how to customize the order of rows and columns.

    For further reference, take a look at the attached sample application and let me know if it matches your requirements.

    UltraGridCustomColumnChooserOrder.zip
Children