When a DataGrid
is bound to a PagedCollectionView
the user can resort the data of a given column or collection of columns. This user action manipulates the SortDescriptions
collection and when that happens I need to refresh the underlying data with a new query from the server.
Ideally I would attach an event handler to CollectionChanged
event of the SortDescriptions
property, but I can't since it's is protected.
What then is the correct method for tracking changes to the SortDescriptions
collection of the PagedCollectionView
?