protected void grdRiders_RowDeleting(object sender, GridViewDeleteEventArgs e) { DataSet dsPolicyRider = (DataSet)Session["dsPolicyRider"]; dsPolicyRider.Tables[0].Rows[e.RowIndex].Delete(); this.BindControl(this.grdRiders); }When the row is deleted, it is removed from the display in the Grid View. However, when I then use the page's Save button, I get this error in VS2008:
Exception has been thrown by the target of an invocation.
If I stop the application, this error then gets displayed in the browser:Deleted row information cannot be accessed through the row.How does one delete rows from a grid successfully?