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
1825
column hiding ?
posted

Good morning,

Is there a way to put a btn on each column that when pressed would hide that column?

Somewhat like the Filter and Summary btns on each column that you can have.

Thanks

Deasun

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Deasun,

    There's no built-in way to add a button to a grid column header. You could do this with a CreationFilter, though.

    Another option would be to use the ColumnChooser. This allows the user to hide/show columns in the grid. The easiest way to enable it is like so:

     


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {

                e.Layout.Override.RowSelectors = DefaultableBoolean.True;
                e.Layout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.ColumnChooserButton;
            }

Children