Hi,
I am trying to sort groupby Rows base on the grid row index. The sorting that is shown on Picture1 is exactly what I want. It can be done using IComparator by comparing the row index. However, once I add another sorted column under that group, the sort has changed. Here are my questions:
1. Is there a way I can fix the GroupbyRow order (in my case, PIcture 1 attachment as is) no matter how I change the rest of the grouping?
2. Is there a way I can GroupBy base on the row index?
I do not know if I am asking the right questions but I just want my "Scenario" column to have specific GroupBy order. I do not want to see any other grouping interrupting that order. Any idea?
Thanks!
Perfect, this is what I was after. Thx for this.
Grouping is tightly tied to sorting. The event you want is BeforeSortChange or AfterSortChange.
I have a grid and I need to detect if a group by column has been changed, i.e an already grouped by column dragged from header into the grid, what event should I be trapping. Initializegroup by or Filter by seems not working.
Regards
I found a solution. May not be the best but works. What I did was just moving the groupby rows after they are being sorted. It works well in my application.
Hi, thanks for the detail explanation. To clarify, I do not want to sort the group in ascending or descending order. I want to sort it in a specific order that I define. With that said, is it possible for me to rearrange the order of the groupbyrow? For example:
From:
+ GroupbyRow A
+ GroupbyRow B
+ GroupbyRow C
To: