title: GridView must be added to a form tag for rendering
body: <pre><code>TextWriter tr = new StringWriter();
  HtmlTextWriter writer = new HtmlTextWriter(tr);
  HtmlForm form = new HtmlForm();
  form.Controls.Add(divQueryDescription);
  divQueryDescription.RenderControl(writer);
  
  &lt;div runat="server" id="divQueryDescription"&gt;
      &lt;asp:GridView runat="server" id="grv"&gt;&lt;/asp:GridView&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My GridView is inside a DIV and I add that DIV to an HtmlForm, so that I can render it to a string. But I get the following error:-</p>
  
  <p>Gridview 'grv' must be placed inside a form tag with runat=server, although my Gridview is already inside a form because I added my DIV to the form.</p>
  
  <p>How can I render this DIV to a string ?</p>