I have a wingrid and i am using the default drag column over to group by and it works perfectly fine.
I want to clear the wingrid including the selected group by option for my next bind to wingrid. Can you please let me know how this could be done.
In other words i want to initialize or reset the wingrid with no group by value.
Newbee to infragistics any help will be appreciated.
Thanks in advance
Thanks Matt that worked like a charm
ug_Wingrid.ResetDisplayLayout()
ug_Wingrid.DisplayLayout.ViewStyleBand = ViewStyleBand.OutlookGroupBy
I tried these lines of code and it worked too
Since you want to do this when re-binding the grid, you could clear the SortedColumns collection in the InitializeLayout event:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e){ e.Layout.Bands[0].SortedColumns.Clear();}
-Matt