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
2490
Caption
posted

Hi,

What is the property to active the caption of my UltraGridColumnChooser.

When I have more that 1 band the name of each band is actif.

But If i have just one band the name of the caption is not appear.

Thank

Francois.

  • 29105
    Suggested Answer
    Offline posted

    Hello Francois,

    The behavior you are experiencing is correct when you only have one band. A single band header will not display in the ColumnChooser dialog. If you do however have more than one band you can achieve the behavior you desire by setting the ColumnChooserControl.MultipleBandSupport property to SingleBandOnly. Depending on what you set the CurrentBand property to will display the band header with it's respectful columns.

    You could create a dummy band and set it the hidden property to true,

    this.ultragrid1.displaylayout.band[1].hidden = true;

    Please see my sample attached for further details. I'd also recommend that you submit a feature request on our website for single band support. <ideas.infragistics.com>

     

     

    ColumnChooserCaptionTest.zip
  • 469350
    Offline posted

    Hi Francois,

    When you have more than one band, the ColumnChooser shows a dropdown list so the user can choose which band they want to work with. So it's not really a caption, is a combobox.

    When you only have one band, there's no need for the dropdown, since there is only one band and no need to choose a band. So I don't believe there is any way to show the dropdown with just one band.