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
980
Custom Sorting
posted

Hi -

I have a grid that contains multiple field layouts that are represented by nested ObservableCollections.

A       Total of children

          50

          75

          10

B       Total of children

          -7

          -2

          -9

 

When I sort by the column, I want the rows in the nested collection to sort but I the top level collection (totals) to remain fixed. In addition, when I sort descending, the largest negative number should come first. When I sort that column descending, it should look like this:

A

        75

        50

        10

B

        -9

        -7

        -2

 

How would I go about this?

 

Thanks!