SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using the MVVM pattern you can bind a SelectedRecord property of your VM with SelectedItem of the DataGrid, this way you always have the SelectedValue in you VM. Otherwise you should use the SelectedIndex property of the DataGrid.
SelectedRecord
SelectedItem
SelectedValue
SelectedIndex