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
340
Problems with GroupBy/Sorting
posted

Hello,

Is there any way to control the sort order of records within a group?  I'm setting the GroupByMode to FirstLetter on a column of names.  I would expect the names within a group to be sorted alphabetically, but instead no sorting is applied at all.  I've tried manually setting the SortComparer and GroupByComparer.  The former never gets used, and the latter only compares the GroupBy records.  It behaves this way in the feature browser examples, too.

Is this a bug, or is there something I'm missing?  Anyone have a workaround other than manually sorting the backing collection?

Thanks,

Matusz

Parents
  • 69686
    posted

    Hello Matusz,

    Here is what I got with the example in the XamFeatureBrowser.

    As you can see, the records are grouped by the first two characters. If you want to sort them (the default is ascending) you have to click the LabelPresenter in the group by area one more time, and the groups will be sorted in a descending order.

Reply Children