[Solved] Accessing items in ObservableCollection bound to WPF DataGrid


Rather than using SelectedIndex, have you tried using SelectedItem or SelectedValue? If the DataGrid‘s ItemSource is set to your ObservableCollection, then those properties should point directly to the selected contained object.

solved Accessing items in ObservableCollection bound to WPF DataGrid