I have used AutoGenerateDeleteButton="true" property of the GridView, so that am getting delete btn on every row. In order to avoid an exception('fired event RowDeleting which wasn't handled ') I am removing that row programmaticaly as follows
protected void gd_OnRowDeleting(object sender, GridViewDeleteEventArgs e)
{
dt_TestSubjects.Rows.RemoveAt(e.RowIndex);
gd_Subjects.DataSource = dt_TestSubjects;
gd_Subjects.DataBind();
}
Now problem is I want to Remove the row visually but I have to access that deleted row for some reason, but I can't since it is removed already from Datatable.
I thought I can use RowState property but actully row itself is getting removed,hence end of the story!
Am I going in wrong direction or there is some other property which I need to play with?