Hello!
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.
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.
This fixed it for me so easy:
Mike Saltzman"] 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.
THANKS