since you are using the MVVM pattern, you can declare a ViewMode as follows:
public class MyViewModel { public ObservableCollection<Prototype> Items { ... } public Prototype SelectedItem SelectedItem { ... } }
After that, in your datagrid you can declare a binding like this:
<DataGrid ItemSource="{Binding Items}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"... />
In your code, you can use the SelectedItem property to get the currently selected datagrid row. If you mean "checked" strings, you can request your observable collection:
var selectedRows = ViewModel.Items.Where(i => i.IsSelected);
source share