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
30
Problem with RefreshSort
posted

Hello!

I have see strange effect while calling

ultraGrid1.DisplayLayout.Bands[0].SortedColumns.RefreshSort(true);

method.

After call of this its will collapsed all expanded Groups.

For example:

(-) Prage (2 items)

 row 1

 row 2

(-) Brno (2 items)

  row3

  row4

Onec I add row 5 s City = Prage, and after call RefreshSort i see:

(+) Prage (3 items)

(+) Brno (2 items)

What can I do to keep collapsing state in its original.

 

Thank you.

Parents
  • 469350
    Verified Answer
    Offline posted

     The grid probably throws away the GroupByRows and creates new ones. If you are calling this method just so re-sort a single row, then maybe you just need to call RefreshSortPosition on the individual row rather than RefreshSort on the SortedColumns collection. 

Reply Children
No Data