Hi together,
I need to hide the column chooser in the wingrid and simulate the user click (of the column chooser) in an outside toolbar button.Is there a way to simulate the column chooser click, if it is hidden in the grid, programmatically?
Thank you for any help!
Best regardsFrank
Hello Frank,
The UltraGrid exposes a number of ShowColumnChooser() methods that can be used to display the UltraGridColumnChooser. Simply calling one of it's overloads from your event handler should do the trick.
http://help.infragistics.com/doc/WinForms/Current/CLR4.0/?page=Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGridBase~ShowColumnChooser.html
Once this is in place, you can hide the ColumnChooser button from the grid again using the Override.RowSelectorHeaderStyle.
Let me know if you have any other questions. Thanks,
Chris
Hello Chris,
This works fine.The simulation with this command:hHeatListGrid.ShowColumnChooser();
And hiding the 'ColumnChooser' in the grid:hHeatListGrid.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.None;
Thank you very much indeed!