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
670
How to sort by number of items in groupby row?
posted

Hi folks

I have a grid and I want to sort the grid by the number of items in groupby row (descending). Any idea how to do that? (I want the row with maximum number of items at top, ...)

 

Parents
  • 69832
    Offline posted

    UltraGridColumn exposes a SortComparer property, which is of type IComparer. This is a very simple interface with one method, Compare, which enables you to control the way the rows are sorted. I believe the BeforeSortChange event tells you whether the sort was triggered by a group-by column.

Reply Children