title: Get value from selected row in WPF Datagrid
body: <p>I have a DataGrid in my WPF projects  </p>
  
  <p><a href="https://i.stack.imgur.com/3gz4R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gz4R.png" alt="enter image description here"></a></p>
  
  <p>As you can see i'm able to select a row. I've made a double click method where i get the selected row. i want get just the ID part of that row.<br>
  This is how my method looks like</p>
  
  <p><a href="https://i.stack.imgur.com/ygCei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ygCei.png" alt="enter image description here"></a></p>
  
  <pre><code>private void Row_DoubleClick(object sender, MouseButtonEventArgs e)
  {
      DataGridRow = sender as DataGridRow;
  }
  </code></pre>
  
  <p>How to I just get the cell where I put the ID in it?</p>
  
  <p>Many thanks in advance</p>