Hi,
I have a multi band (hierarchical) Grid Data where say for example the bands are as follows Top Down:
Row1-Band0 : Band1, Band2, Band3
Row2-Band0 : Band4, Band5, Band6
Now, I sort the only Visible column in Band0, and Visually the bands display as follows:
Now Open the column chooser, you will notice that it displays Bands in the first mentioned order Band0, Band1, Band2, Band3, Band4, Band5, Band6
and not in the after column-sort-order Band0, Band4, Band5, Band6, Band1, Band2, Band3.
I added a print statement in AfterSortChangeEvent to check the Band VisiblePosition ... this was 0 - UNSET.
Although, Visually it seems to look like the bands have been sorted, the band VisualPosition/SortedIndex have not changed and hence UltraColumnChooser displays bands in the old order.
Is this a bug or designed that way. Is there a workaround without having to manually set the band's VisiblePosition.
Thanks
Sangeetha
Hello,
UltraColumnChooser displays the headers of source UltraGrid in alphabetically order. If you want to display them in the same order as in the source grid you should set ColumnDisplayOrder property of the column chooser to SameAsGrid:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.UltraGridColumnChooser~ColumnDisplayOrder.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.ColumnDisplayOrder.html
if you are using default ColumnChooser of the grid, you could access UltraColumnChooser in BeforeColumnChooserDisplayed event of the source UltraGrid e.Dialog.ColumnChooserControl
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v12.2~Infragistics.Win.UltraWinGrid.UltraGridBase~BeforeColumnChooserDisplayed_EV.html
Please let me know if you have any further questions.
Hi Hristo,
Thank You for your reply.
I am talking about the Band Display Order not the ColumnDisplayOrder.