Hi,
I'd like to use external sorting for my xamDataGrid (SortEvaluationModel = UseCollectionView). The documentation says external sorting is not supported for unbound fields. But how come external sorting is also not supported for AlternateBinding fields? For my AlternateBinding field, I have the AlternateBinding specified, so shouldn't the grid know the underlying property name to use to update the collection view?
Thanks,
Harold
Hello Harold,
In order to use external sorting with AlternateBinding in XamDataGrid you have to implement IComparable interface for the underlying property you want sort. I have attached a simple sample application where you can test this approach.
Let me know if you have any questions.
Sincerely,ZhivkoAssociate Software Developer
Hi Zhivko,
Sorry for the late reply. I tried your sample. It doesn't sort if I click on the column header. It only sorts if I click on your button. If I remove UseCollectionView, then sorting by column header works. Attached is a recording.