Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get selected item datagrid wpf

private void Row_DoubleClick(object sender, MouseButtonEventArgs e)
{
    ClassName classObj = dataGridName.SelectedItem as ClassName;
    string id = classObj.ID;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #selected #item #datagrid #wpf
ADD COMMENT
Topic
Name
9+3 =