Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Problem with reset to default after ungrouping in UltraGrid
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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");

     

Children
No Data