I’m using c# in combination of WPF.
I’ve used a CollectionView with a single SortDescription. But in certain cases the SortDescription is not used. Yet I couldn’t find out why this is happening.
The ComboBox isn’t sorted for some reason. When I add a second SortDescription with the same sorting option it also happens.
No cv.sortdescriptions.clear(); is used for this particular SortDescription.
In 99% of the cases it works perfect, but somehow for one reason yet this happening.
Anyone have a clue?
as a side note, it would be more performant to use the CustomSort property. Apparently the SortDescriptions uses reflection, so for large sets of data, it is unacceptably slow.
check this blog for more information