I\'m trying to get the values of each column of a selected row in a DataGrid. This is what I have:
private void dataGrid1_CellEditEnding(object sender, DataG
Solution based on Tonys answer:
DataGrid dg = sender as DataGrid; User row = (User)dg.SelectedItems[0]; Console.WriteLine(row.UserID);