If I group by dragging any column to the Grouping box in UltraGrid, that column will be removed from the grid and Group tree will hold that column. if I disable the grouping (Ungrouping)using code how to re add the column back to the grid. I mean how to do the un-gouping dynamically using code.
Please Help me.
Thanks in advance.
Kishor K
Hi Kishor,
Grouping is tightly tied to sorting. So you could clear all of the grouping and sorting in the grid like this:
this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Clear();
To unground and unsort a single column, you remove it from the SortedColumns collection:
this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Remove("My Column");