title: Nested GridView in ASP.NET using C#
body: <p>I need create <code>Nested GridView</code> in <code>ASP.NET</code> using <code>C#</code>.</p>
  <p>This is the tutorial: <a href="http://www.dotnetfox.com/articles/nested-gridview-in-Asp-Net-using-C-Sharp-1011.aspx" rel="nofollow noreferrer">http://www.dotnetfox.com/articles/nested-gridview-in-Asp-Net-using-C-Sharp-1011.aspx</a></p>
  <p>My problem is when set <code>AutoGenerateColumns</code> property of the first <code>GridView</code></p>
  <p>If setting on <code>GridView</code> is</p>
  <pre><code>AutoGenerateColumns=&quot;True&quot;
  </code></pre>
  <p>the return is
  <a href="https://i.stack.imgur.com/r8lZE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r8lZE.png" alt="enter image description here" /></a></p>
  <p>Instead if setting on <code>GridView</code> is</p>
  <pre><code>AutoGenerateColumns=&quot;False&quot;
  </code></pre>
  <p>the return is
  <a href="https://i.stack.imgur.com/NH4GM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NH4GM.png" alt="enter image description here" /></a></p>
  <p>I need set <code>AutoGenerateColumns</code> property <code>True</code> always</p>
  <p>I can't have a <code>Nested GridView</code> if I use <code>AutoGenerateColumns=&quot;True&quot;</code> ?</p>