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
1320
Simulate a column chooser user click
posted

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 regards
Frank

Parents
  • 6158
    Verified Answer
    Offline posted

    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

Reply Children
No Data