title: How to delete a row without using OnRowDeleted/OnRowDeleting in gridview
body: <p>Code Behind    </p>
  
  <pre><code>public void lbDelete_Click(object sender, EventArgs e)
  {
      LinkButton lb = sender as LinkButton;
      GridViewRow gvrow = lb.NamingContainer as GridViewRow;
      gvsize.DeleteRow(gvrow.RowIndex);
  }
  </code></pre>
  
  <p><strong>GridView:</strong> </p>
  
  <pre><code>&lt;asp:GridView ID="gvsize" runat="server" ShowFooter="True" CellPadding="1" CellSpacing="2" AutoGenerateColumns="false" GridLines="Horizontal"&gt;
      &lt;asp:TemplateField HeaderText="Action"&gt;
         &lt;ItemTemplate&gt;
            &lt;asp:LinkButton ID="lnkdelete" runat="server" ForeColor="Blue" OnClick="lbDelete_Click"&gt;Delete&lt;/asp:LinkButton&gt;
         &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  &lt;/asp:GridView &gt;
  </code></pre>
  
  <p>There are 2 rows in my gridview which I need to delete the row using the function above.</p>
  
  <p>It throws an error <code>"gvsize" RowDeletingEvent was not handled properly.</code></p>
  
  <p>Is that necessary to use <code>OnRowDeleted/OnRowDeleting</code> in gridview which I feel not necessary??</p>