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
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; }
Thanks very much for the reply.
Didnt see that one. :(
i think it will work fine for the user requesting it.