UnselectAll Problem

Mar 12, 2009 at 11:29 AM
I want to unselect all the SelectedItems when use multi-select mode in DataGrid if the SelectedItems is not proper or useless for me

I use UnselectAll function of DataGrid in SelectionChanged method, and it really unselect the last item I select, but the other items are still highlight and selected? What's wrong?  And I bind the IsSelected property of rows to my ViewModel using TwoWay mode.