title: Using Gridview in aspx.vb (code-behind)
body: <p>I need to create a gridview based on 2 different datasources: main and sub-cathegory. And I need to list them like below:</p>
  
  <pre>
  Productinfo
     sub-product 1
     sub-product 2
  
  Productinfo
     sub-product 1
     sub-product 2
     sub-product 3
     sub-product 4
  </pre>
  
  <p>Etc... the thing is that both the "productinfo" and the "sub-product" are dynamic as the number of both can vary, so I would have to create a gridview within a gridview, plus the necessary filters too.</p>
  
  <p>For this reason I thought it was best to do it all in code-behind, but I can't understand how to use the gridview-class in codebehind and bind it so that it actually shows something in the main aspx page.</p>
  
  <p>Basically what I'm asking for is a simple example of how, when you have nothing but &lt;asp:GridView/&gt; in the aspx -page, can you add components to it and show it, from code-behind (vb)?</p>
  
  <p>Thanks.</p>