title: Referencing nested control
body: <p>I have two gridviews - one nested in the other - and I am trying to set the datasource of the child grid programmaticly, but am not sure how to reference it.</p>
  
  <pre><code>&lt;telerik:RadGrid ID="RadGridResults" runat="server" AutoGenerateColumns="true" OnNeedDataSource="RadGridResults_NeedDataSource"&gt;
      &lt;MasterTableView&gt;
          &lt;NestedViewTemplate&gt;
              &lt;telerik:RadGrid ID="RadGridDetails" runat="server" AutoGenerateColumns="true"&gt;
              &lt;/telerik:RadGrid&gt;
          &lt;/NestedViewTemplate&gt;
      &lt;/MasterTableView&gt;
  &lt;/telerik:RadGrid&gt;
  </code></pre>
  
  <p>I have tried this:</p>
  
  <pre><code>RadGrid radGridDetails = RadGridResults.FindControl("RadGridDetails") as RadGrid;
  radGridDetails.DataSource = myList.ToList();
  </code></pre>
  
  <p>But this returns a NullReferenceException.</p>
  
  <p>Can someone please show how I can accomplish this?</p>