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
155
Cancel GroupBy
posted

Hi,

How can I cancel all the GroupBy in the code ?

Like, if I click a button, I want that if I got three actives GroupBy, the grid redraw like when I open it (without any group by)

thx

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    If you want to cancel the actual grouping process when the user tries to do it, you could use the BeforeSortChange event.  If you're trying to remove all the GroupByColumns, you could simply clear the SortedColumns collection on the band (i.e. this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Clear();).

    -Matt

Children