I'm working with a Multi-Band grid and was wondering if there is anyway to hide the "band" selection item on the Column Chooser? When the user clicks the button on the band to display the Column Chooser, I want it to only allow them to change the columns specific to that band.
Hi,
I think this will do it:
private void ultraGrid1_BeforeColumnChooserDisplayed(object sender, BeforeColumnChooserDisplayedEventArgs e) { e.Dialog.ColumnChooserControl.Style = ColumnChooserStyle.AllColumnsWithCheckBoxes; }
That removes the Band from from the list of checkboxes, however it does not hide the band drop down list on the column chooser. A user can still hide/show columns for other bands by altering the selected band in the dropdown. How do I hide this dropdown?
I figued it out... both the previous answer and this line do exactly what I need:
e.Dialog.ColumnChooserControl.MultipleBandSupport = Infragistics.Win.UltraWinGrid.MultipleBandSupport.SingleBandOnly