title: Unable to render the HTML output on a Page
body: <p>I am trying to build SPGridView on aspx.cs</p>
  
  <p>Below is the code</p>
  
  <pre><code>  StringBuilder sb = new StringBuilder();
          sb.AppendFormat("&lt;SharePoint:SPGridView runat=\"server\" ID=\"spgridview\" AutoGenerateColumns=\"false\" AllowPaging=\"true\" AllowSorting=\"true\" Visible=\"true\"&gt;\n");
          sb.AppendFormat("&lt;Columns&gt;\n");
          sb.AppendFormat("&lt;asp:TemplateField&gt;\n");
          sb.AppendFormat("&lt;ItemTemplate&gt;\n");
          sb.AppendFormat("&lt;asp:Label ID=\"lblNo\" runat=\"server\" Text=\"First\"/&gt;\n");
          sb.AppendFormat("&lt;/ItemTemplate&gt;\n");
          sb.AppendFormat("&lt;/asp:TemplateField&gt;\n");
          sb.AppendFormat("&lt;asp:TemplateField&gt;\n");
          sb.AppendFormat("&lt;ItemTemplate&gt;\n");
          sb.AppendFormat("&lt;asp:Label ID=\"lblName\" runat=\"server\" Text=\"Janaki\"/&gt;\n");
          sb.AppendFormat("&lt;/ItemTemplate&gt;\n");
          sb.AppendFormat("&lt;/asp:TemplateField&gt;\n");
          sb.AppendFormat("&lt;/Columns&gt;\n");
          sb.AppendFormat("&lt;/SharePoint:SPGridView&gt;\n");
  </code></pre>
  
  <p>I tried <code>Response.Write(sb.ToString());</code>, There is nothing on the page. How can I get this working. Maybe I am missing something..Please let me know.</p>