SyntaxFix
Write A Post
Hire A Developer
Questions
Solution based on Tonys answer:
DataGrid dg = sender as DataGrid; User row = (User)dg.SelectedItems[0]; Console.WriteLine(row.UserID);