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
105
Sort columns in column chooser alphabetically
posted

Hi!

How do you sort the columns alphabetically in the window that is opened when calling the method ShowColumnChooser on the grid?

Parents
  • 469350
    Suggested Answer
    Offline posted

    The columns in the ColumnChooser are sorted alphbetically by default. If your columns are not showing up alphabetically, then you must be explicitly changing the order.

    The way you would change the order is like so:


            private void ultraGrid1_BeforeColumnChooserDisplayed(object sender, BeforeColumnChooserDisplayedEventArgs e)
            {
                e.Dialog.ColumnChooserControl.ColumnDisplayOrder = ColumnDisplayOrder.SameAsGrid;
            }

     

Reply Children