title: Retrieve value of rows column that is databound
body: <p>I've got a DataGrid that I've setup a doubleclick eventsetter that calls a method. Below is my xaml, following that is my codebehind page. The double click event works, but the return I get is "system.data.datarowview" and I don't know why. I'm trying to get the "vehicleID" value of the row which is its own column that is hidden.</p>
  
  <p>XAML:</p>
  
  <pre><code>&lt;DataGrid Name="OpenVehicles" AutoGenerateColumns="False" IsReadOnly="False" SelectedItem="{Binding vehicleID}" SelectionUnit="FullRow"&gt;
  &lt;DataGrid.ItemContainerStyle&gt;
      &lt;Style TargetType="DataGridRow"&gt;
          &lt;EventSetter Event="MouseDoubleClick" Handler="OpenVehicleClick" /&gt;
      &lt;/Style&gt;
  &lt;/DataGrid.ItemContainerStyle&gt;
  &lt;DataGrid.Columns&gt;
      &lt;DataGridTextColumn Binding="{Binding vehicleID}" Width="*" Header="vehicleID" Visibility="Hidden"/&gt;
      &lt;DataGridTextColumn Binding="{Binding date, StringFormat=\{0:MMM dd yyyy \}}" Width="*" Header="Date"/&gt;
      &lt;DataGridTextColumn Binding="{Binding companyshortname}" Width="*" Header="Customer"/&gt;
      &lt;DataGridTextColumn Binding="{Binding subject}" Width="5*" Header="Vehicle Description"/&gt;
      &lt;DataGridTextColumn Binding="{Binding FName}" Width="*" Header="Owner"/&gt;
  &lt;/DataGrid.Columns&gt;
  </code></pre>
  
  <p></p>
  
  <p>C# Code:</p>
  
  <pre><code>        private void OpenVehicleClick(object sender, RoutedEventArgs e)
      {
          MessageBox.Show(OpenVehicles.CurrentCell.Item.ToString());
      }
  </code></pre>
  
  <p>Any ideas on how to retrieve the column value or any other suggestions are more than welcome. I'm beyond stumped.</p>