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
Yes, the Group By Records are sorted correctly. The problem is that the DataRecords within the groups are unsorted. Using that same sample, group by first letter and look at the records under D:
Despite the fact that CompanyName is sorted ascending, the records go Dr..., Du..., Di.... Changing the sort to descending does not change the order of these records.
Now if I change it to First 2 Characters, it will sort, because they all differ on the second character. So clearly it is applying the GroupByComparer to sort the data records within the groups. Is there any way I can force it to use a different comparison, i.e. full alphabetic ordering?
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.