title: WPF Datagrid Get Selected Item
body: <p>How do I get the selected item in a WPF datagrid?  Tried the following, with no luck;</p>
  
  <pre><code>dataGrid1.CurrentCell.Item.ToString();
  string[] strsplit = dataGrid1.SelectedValue.ToString().Split('+');
  dataGrid1.SelectedCells[0].Item.ToString();
  dataGrid1.CurrentItem.ToString();
  
  dataGrid1.CurrentCell.Item.ToString();
  dataGrid1.CurrentCell.Item.ToString();
  </code></pre>