how to prevent autoselection of first item in GridView on databind?
问题 When I databind my GridView to an ObservableCollection, the first item of the collection is automatically selected. The SelectionMode property of the GridView is set to multiple . Is there some way to prevent this auto-selection? Or on what event should I listen so that I can reset the SelectedIndex of the GridView back to -1? 回答1: Set the IsSynchronizedWithCurrenItem property to false on the gridview in xaml 回答2: There is acutally a pretty simple solution. I set the SelectionMode of the