I have a UltraGrid and its datasource is BindingList<Objects>
I do group by a particular column band.SortedColumns.Add("Key", false, true);
Now I see a header on top of each group and on Grid. How do I hide the one top of Grid. Please see attached file to see my Grid appearance.
Thank you
Hello,
It seems that you are using the OutlookGroupBy ViewStyle. If you want you can change it like:
e.Layout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.Vertical;
Please let me know if that is what you want or I am missing someting.
Sincerely,
Danko Valkov
Developer Support Engineer
Infragistics, Inc.
I tried :e.Layout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.Vertical;
Setting ViewStyleBand to Vertical removes the grouping of each level that I showed you in the attachment. I want the grouping as well as the header hidden. Is it possible?
e.Layout.GroupByBox.Hidden = true; hides the header on top of the Grid.
May be you are reffering to GroupByBox? If so you are able to hide in the InitializeLayout event like so:
e.Layout.GroupByBox.Hidden = true;
Or you want to hide the headers in that group. If so please try the following:
e.Layout.Bands[Index].Groups.Band.HeaderVisible = false;
where the index is the index of the Band that you are grouping in.
If that is not the situation could you please pointed me out on your picture which exactly header do you want to hide.