I populate DataGrid in WPF through MVVM. I have business object with 4 properties to create the Row and Columns in the DataGrid.
First of all, do not place your command into your Model, instead use binding through RelativeSource. Like this:
Model
RelativeSource
Second, you can bind your DataGrid SelectedItem to property of you ViewModel
DataGrid
SelectedItem
ViewModel
or pass your selected item through CommandParameter.
CommandParameter