Add different Buttons on a single column of a GridView
<p>I've added an Edit button to the <code>Action</code> column of my <code>Gridview</code> using a <code>TemplateField</code>. I want every column to have the edit button in the first column except for the last row, which should have an Add button there instead. How would I implement this separate last row with the different button? Here is the code I have.</p>

<pre><code>&lt;asp:TemplateField HeaderText="Action"&gt;
      &lt;ItemTemplate&gt;
            &lt;asp:Button ID="Edit" runat="server" text="Edit" OnClientClick="btnEditClick()" /&gt;
      &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
</code></pre>

<p><br></p>

<pre><code>DataTable dt = new DataTable();

dt.Columns.Add("Action");
DataRow row1 = dt.NewRow();
...
dt.Rows.Add(row1);
gridRoles.DataSource = dt;
gridRoles.DataBind();
</code></pre>