The WPF rows represent the objects in the list, and the columns represent the properties of the object.
It depends on what DataGrid.ItemsSource is.If your ItemSource is an array of BindedClass, you can get the selected object:
BindedClass bc = (BindedClass)dataGridControl.SelectedItem;
var prop1 = bc.Prop1;
var prop2 = bc.Prop2;
source
share