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
105
Sort GroupBy Columns
posted

Hi,

I have a grid with a number of columns, two of these are Name and orderID. We allow the user to use the group by function by dragging a column to the group by box. So if they drop the name column there, it groups on name and then the group by rows are sorted in name order. I would like the group by rows to always be sorted on the orderID. How can I accomplish this?

 

Sincerly,

Gabriel 

Parents
  • 469350
    Verified Answer
    Offline posted

     Hi Gabriel, 

    You can sort the GroupByRows using a GroupByRowSortComparer on the column.  You will need to create a class that implements IComparer. 

Reply Children