title: The GridView 'OrdersGridView' fired event RowDeleting which wasn't handled
body: <p>I’m getting this error over and over again.</p>
  
  <p>Loading the data into the GridView works, but when I want to delete a row I'm getting that error.</p>
  
  <pre><code>&lt;asp:GridView ID="OrdersGridView" runat="server" AutoGenerateColumns="False" onrowdeleted="OrdersGridView_RowDeleted"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="Product Name"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:HiddenField runat="server" ID="HiddenField1" Value='&lt;%#Eval("oid")%&gt;'&gt;&lt;/asp:HiddenField&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="titel" HeaderText="Name" /&gt;
          &lt;asp:BoundField DataField="oid" HeaderText="Itemno" /&gt;
          &lt;asp:BoundField DataField="prijs" HeaderText="Price" /&gt;
          &lt;asp:CommandField ButtonType="Link" CausesValidation="false" HeaderText="Update" ShowDeleteButton="True" /&gt;
          &lt;asp:BoundField DataField="prijs" HeaderText="Subtotal" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>C# codebehind - I'm not really deleting the row from the database but it's a test:</p>
  
  <pre><code>protected void OrdersGridView_RowDeleted(object sender, System.Web.UI.WebControls.GridViewDeletedEventArgs e)
  {
      if (e.Exception != null)
      {
          lblStatus.Text = e.Exception.ToString();
      }
      else 
      {
          string sValue = ((HiddenField)OrdersGridView.SelectedRow.Cells[1].FindControl("HiddenField1")).Value;
          lblStatus.Text = sValue;
      }
  }
  </code></pre>
  
  <p>But after clicking, I get a bigass yellow page with the next error:</p>
  
  <blockquote>
    <p>The GridView 'OrdersGridView' fired event RowDeleting which wasn't handled.</p>
  </blockquote>