Assume that a data table has 3 columns with data, Col1, Col2 and Col3 and that this data table is the data source for an UltraGrid. What are the required steps to programmatically display the data grouped by Col1's data?
I think the answer you are looking for is in this thread:
The previous reply brought 'SortedColumns' to my attention and I was able to get things to work in my environment.
DataTable _dt = new DataTable( "TableChart" );// <snip> Code to add columns Col1, Col2 and Col3 to _dt.// <snip> Code to populate _dt with data.ultraGrid1.DataSource = _dt;ultraGrid1.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add( "Col1", false, true );