Stanislav
2020-01-16T19:38:23Z
Hello,

In my application I need to display rows in two modes: unsorted (original order in which rows were added to the grid) and grouped by a column (with rows displayed in the original order in which they were initially added).
When I call Group() in code, the rows are grouped correctly but the original order of rows is lost. I have searched the documentation and checked OutlookView sample but I could not find anything on how to use Sort() and Group() together to achieve this.
How do I group the rows so that the original order of rows is maintained after grouping?

Thanks!

Best regards,
Stanislav
Igor/10Tec
2020-01-17T07:19:57Z
You need to add a hidden column and populate with original row numbers after you have populated your grid. Then add this column to SortObject, and it will be taken into account when you group the grid.
Stanislav
2020-01-17T13:02:33Z
Thanks, Igor! This worked nicely!