title: How to add footer to gridview
body: <p>I have a grid with 3 columns - Edit, ID, Movie. I would like to add a footer with an Insert link button, 2 textboxes respectively, but unable to do so. Is it possible.</p>
  
  <p>ASPX:</p>
  
  <pre><code> &lt;asp:GridView ID="gridview1" runat="server" AutoGenerateColumns="False"     
   OnRowEditing="gridview1_RowEditing" 
   OnRowCancelingEdit="gridview1_RowCancelingEdit"
      ShowFooter="true" &gt;
      &lt;Columns&gt;
       &lt;asp:CommandField ShowEditButton="true" ShowDeleteButton="true" /&gt;
        &lt;asp:BoundField DataField="id" HeaderText="ID" /&gt;
        &lt;asp:BoundField DataField="movie" HeaderText="MOVIE" /&gt;
       &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>When I try the following, there is an error for commandfield which says, this element is not supported.</p>
  
  <pre><code>&lt;Columns&gt;
   &lt;asp:TemplateField&gt;
    &lt;ItemTemplate&gt;
      &lt;asp:CommandField ShowEditButton="true" ShowDeleteButton="true" /&gt;
    &lt;/ItemTemplate&gt;
   &lt;FooterTemplate&gt;
      &lt;asp:LinkButton ID="lnkInsert" runat="server" Text="Insert"&gt;&lt;/asp:LinkButton&gt;
  &lt;/FooterTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;/columns&gt;
  </code></pre>
  
  <p>The other way would be to use itemTemplate &amp; EditTemplate for each column control. But I find this simple and would like to proceed this way. So Can I add a footer to this structure.
  <img src="https://i.stack.imgur.com/sedNh.jpg" alt="enter image description here"></p>