title: How to get a Content control to present a data template for a selected field in a WPF gridview?
body: <p>so I have the following definition for a DataGrid control:</p>
  
  <pre><code>&lt;Custom:DataGrid x:Name="dataGrid" ItemsSource="{Binding Units, Mode=Default}" AutoGenerateColumns="False"&gt;
  </code></pre>
  
  <p>and later in the same XAML document I have the following Content control:</p>
  
  <pre><code>&lt;ContentControl Content="{Binding SelectedUnitResults, Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>What I would like to do is have the content control bind to the DataGrid's SelectedItem[0].SelectedUnitResults field on the view model (SelectedItem[0] being a ViewModel for a DataTemplate and SelectedUnitResults being a field that is of a type with a DataTemplate binding as well)</p>
  
  <p>Any insight would be appreciated.</p>