title: How to Assign Datgrid ItemSource from Parent DatGrid Selected Item
body: <p>I have a Datagrid and inside it's row details template I have another Datagrid</p>
  
  <pre><code>&lt;DataGrid Name="dataGridWorkOrders" ItemsSource="{StaticResource workorders}" &gt;
  &lt;DataGrid.RowDetailsTemplate&gt;
    &lt;DataTemplate&gt;
          &lt;Border BorderThickness="0" Background="BlanchedAlmond" Padding="10"&gt;
          &lt;DataGrid IsReadOnly="True" AutoGenerateColumns="False" ItemsSource="{Element=dataGridWorkOrders,path=selectedItem}"&gt;
    &lt;/DataGrid&gt;
   &lt;/Border&gt;
  </code></pre>
  
  <p>Workorders Collection is like:</p>
  
  <pre><code>class WorkOrders : ObservableCollection&lt;WorkOrder&gt;
      {
          public WorkOrders()
          {
              var orderList = OrderDetailsProvider.GetOrders() as List&lt;WorkOrder&gt;;
  
              orderList.ForEach(
                          order =&gt; this.Add(order));
          }
  </code></pre>
  
  <p>The WorkorderClass has following fields exposed as proporties.</p>
  
  <pre><code> private string orderID;
   private int totalQuantity;
   private string status;
   private ObservableCollection&lt;Schedule&gt; scheduleCollection;
  </code></pre>
  
  <p>Now in my second datagrid I want to bind to <strong>ScheduleCollection</strong> of the currently selected datagrid</p>