title: how to get the delete row value if I wanna to delete it in gridview (web application)
body: <p>when i have a gridview, after the user press the delete button, i will like to know that the particular row data in this case, how i get the particular row data?</p>
  
  <p>Sample gridview:</p>
  
  <pre><code> &lt;asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                      DataSourceID="SqlDataSource1" DataKeyNames="addCartID" 
                      BackColor="White" 
                      BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                      CellSpacing="1" GridLines="None" OnRowDeleted="Delete_Event"&gt;
                      &lt;Columns&gt;
                          &lt;asp:CommandField ShowDeleteButton="True" /&gt;
                          &lt;asp:TemplateField HeaderText="addCartID" InsertVisible="False" 
                              SortExpression="addCartID"&gt;
                              &lt;EditItemTemplate&gt;
                                  &lt;asp:Label ID="Label1" runat="server" Text='&lt;%# Eval("addCartID") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;/EditItemTemplate&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;asp:Label ID="Label1" runat="server" Text='&lt;%# Bind("addCartID") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;/ItemTemplate&gt;
                          &lt;/asp:TemplateField&gt;
                          &lt;asp:TemplateField HeaderText="productID" SortExpression="productID"&gt;
                              &lt;EditItemTemplate&gt;
                                  &lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# Bind("productID") %&gt;'&gt;&lt;/asp:TextBox&gt;
                              &lt;/EditItemTemplate&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;asp:Label ID="Label2" runat="server" Text='&lt;%# Bind("productID") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;/ItemTemplate&gt;
                          &lt;/asp:TemplateField&gt;
                          &lt;asp:TemplateField HeaderText="custID" SortExpression="custID"&gt;
                              &lt;EditItemTemplate&gt;
                                  &lt;asp:TextBox ID="TextBox2" runat="server" Text='&lt;%# Bind("custID") %&gt;'&gt;&lt;/asp:TextBox&gt;
                              &lt;/EditItemTemplate&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;asp:Label ID="Label3" runat="server" Text='&lt;%# Bind("custID") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;/ItemTemplate&gt;
                          &lt;/asp:TemplateField&gt;
                          &lt;asp:TemplateField HeaderText="seatOrderID" SortExpression="seatOrderID"&gt;
                              &lt;EditItemTemplate&gt;
                                  &lt;asp:TextBox ID="TextBox3" runat="server" Text='&lt;%# Bind("seatOrderID") %&gt;'&gt;&lt;/asp:TextBox&gt;
                              &lt;/EditItemTemplate&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;asp:Label ID="Label4" runat="server" Text='&lt;%# Bind("seatOrderID") %&gt;'&gt;&lt;/asp:Label&gt;
                              &lt;/ItemTemplate&gt;
                          &lt;/asp:TemplateField&gt;
  
  
                      &lt;/Columns&gt;
                      &lt;FooterStyle BackColor="#C6C3C6" ForeColor="Black" /&gt;
                      &lt;HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" /&gt;
                      &lt;PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" /&gt;
                      &lt;RowStyle BackColor="#DEDFDE" ForeColor="Black" /&gt;
                      &lt;SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" /&gt;
                      &lt;SortedAscendingCellStyle BackColor="#F1F1F1" /&gt;
                      &lt;SortedAscendingHeaderStyle BackColor="#594B9C" /&gt;
                      &lt;SortedDescendingCellStyle BackColor="#CAC9C9" /&gt;
                      &lt;SortedDescendingHeaderStyle BackColor="#33276A" /&gt;
                  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Here is the c# code i wanna get the delete value, after user click delete i wish to update something based on the seatOrderID deleted, how do i get it? tq~~</p>
  
  <pre><code> protected void updateBack()
      {
          Response.Write(I want to get the deleted seatOrderID here!!!!!);
      }
  </code></pre>