DataGridCollectionView view = grid.ItemsSource as DataGridCollectionView;
if (view != null)
{
((INotifyCollectionChanged)view.SortDescriptions).CollectionChanged -=
new NotifyCollectionChangedEventHandler(SortCollectionChanged);
}
private void SortCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
//do stuff
}
No comments:
Post a Comment