How to keep items in Silverlight DataGrid sorted when items are changing

I have a DataGrid that is bound to a collection.  The items in that collection need to be sorted in the DataGrid and stay sorted even when the item properties are updated, which may force the sort order to change.  I have tried CollectionViewSource and PagedCollectionView to no avail.
LVL 1
kayhustleAsked:
Who is Participating?
 
CodeCruiserCommented:
0
 
feddasCommented:
Try binding your DataGrid to an ObservableCollection
http://msdn.microsoft.com/en-us/library/ms668604.aspx

It's the collection object meant to do what you describe, update those bound to it when values in it's collection change.
0
 
apeterCommented:
Maybe you should rebind the datagrid after setting to null.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
feddasCommented:
3 attempted answers were given with no response. It's likely one of them works.
0
 
kayhustleAuthor Commented:
None of the answers helped me actually, but I don't mind just rewarding points for the attempt and because it's been such a long time.
0
 
kayhustleAuthor Commented:
Didn't really help in my case when I tried out the solutions.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.