Sorting an observable collection with linq

后端 未结 6 1129
囚心锁ツ
囚心锁ツ 2020-12-16 12:13

I have an observable collection and I sort it using linq. Everything is great, but the problem I have is how do I sort the actual observable collection? Instead I just end

6条回答
  •  孤城傲影
    2020-12-16 12:26

    i followed the link mentioned in this post http://mokosh.co.uk/post/2009/08/04/how-to-sort-observablecollection/comment-page-1/#comment-75

    but having issues getting it to work in Silverlight

    I created a property public SortableObservableCollection Terms When I call Terms.Sort(new TermComparer()) the records are still display unsorted on the UI

    could some suggest what could be going wrong. thanks

提交回复
热议问题