title: Gridview colspan of footer button
body: <p>I have a gridview that currently looks like this:
  <img src="https://i.stack.imgur.com/JKmHj.png" alt="Gridview"></p>
  
  <p>I would like to make the cell with the button that says add new row to span the 2 columns of the buttons above it.</p>
  
  <p>Also I would like to add text boxes on the other 4 columns and effectively make that row an "add user row" I'm a beginner and still experimenting, detailed explanations would be very helpful.</p>
  
  <p>this is the html code:</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
      CodeFile="Admin.aspx.cs" Inherits="_Default" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"&gt;
      &lt;link href="css/admin.css" rel="stylesheet" /&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&gt;
      &lt;header class="grid_9"&gt;פאנל מנהל&lt;/header&gt;
      &lt;div class="grid_9 block_head"&gt;
          טבלת משתמשים
      &lt;/div&gt;
      &lt;div class="block grid_9" id="user_block" runat="server"&gt;
          &lt;asp:GridView ID="gdview" OnRowEditing="gdview_RowEditing" DataKeyNames="id" AutoGenerateColumns="False"
              CssClass="Grid" OnRowUpdating="gdview_RowUpdating" OnRowCancelingEdit="gdview_RowCancelingEdit"
              runat="server" HeaderStyle-CssClass="tableheader" OnRowDeleting="gdview_RowDeleting" OnRowCreated="RowCreated"
              ShowFooter="true"&gt;
              &lt;Columns&gt;
                  &lt;asp:BoundField HeaderText="מספר מזהה" DataField="id" ReadOnly&gt;&lt;/asp:BoundField&gt;
                  &lt;asp:BoundField HeaderText="שם משתמש" DataField="username"&gt;&lt;/asp:BoundField&gt;
                  &lt;asp:BoundField HeaderText="סיסמא" DataField="password"&gt;&lt;/asp:BoundField&gt;
                  &lt;asp:BoundField HeaderText="אימייל" DataField="email"&gt;&lt;/asp:BoundField&gt;
  
                  &lt;asp:CommandField ShowEditButton="True" CancelText="בטל" UpdateText="עדכן" EditText="ערוך"&gt;&lt;/asp:CommandField&gt;
  
                  &lt;asp:TemplateField&gt;
                      &lt;ItemTemplate&gt;
                          &lt;asp:LinkButton ID="lnkdel" runat="server" Text="מחק" CommandName="Delete"&gt;&lt;/asp:LinkButton&gt;
                      &lt;/ItemTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  
                  &lt;asp:TemplateField&gt;
                      &lt;FooterTemplate&gt;
                          &lt;asp:Button ID="ButtonAdd" runat="server" Text="Add New Row" /&gt;
                      &lt;/FooterTemplate&gt;
                  &lt;/asp:TemplateField&gt;
  
              &lt;/Columns&gt;
          &lt;/asp:GridView&gt;
      &lt;/div&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>thanks!</p>