title: dynamic gridview in not visible / not showing
body: <p>I have set a dynamic gridview, which i want to use it in another form so i created it as</p>
  
  <pre><code> public GridView gv = new GridView()
  </code></pre>
  
  <p>i have set in <code>Page_Load</code> properties of gv to</p>
  
  <pre><code> gv.AutoGenerateColumns = true;
   gv.Visible = true;
  </code></pre>
  
  <p>then i have another grid MyGridView which is static and have data in it. So when i try to copy all static gridview data to dynamic gridview data that is</p>
  
  <pre><code>gv.DataSource = MyGridView.DataSource;
  gv.DataBind();
  </code></pre>
  
  <p>I am not able to view the Grid gv, why is it so? someone told me to add </p>
  
  <pre><code> 'Controls.Add(gv) in Page_Load
  </code></pre>
  
  <p>when i added its showing compile time error, that gv should be in a form with <code>runat=server</code>.
  How can i put a dynamic gridview into a form with <code>runat=server</code>?</p>
  
  <p>So my requirement is gv should be visible, how can i achieve this?</p>
  
  <p>Thanks in advance.</p>