Silverlight 4 Datagrid - Save sorting on refresh

I have a silverlight 4 datagrid populated by a pagedcollectionview following MVVM pattern. The grid updates periodically and refreshes the items by checking a database to get the latest values. However when it does this it doesn't save the current sort of the grid. What is the best and/or easiest way to accomplish saving the sorting state?
Putman73Asked:
Who is Participating?
 
Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
Hi,
By default, it should preserve the sorting option, it seems you are either handling control dynamically. if it is, then just get the sort option from the grid and apply it programatically after refreshing or rebinding
Thanks
0
 
Putman73Author Commented:
Right, but how to get the sort option from the datagrid? There doesn't seem to be any way to tap into the Sorting event when it occurs...
0
 
Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
0
 
Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
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.