1. u can use a dataset and datatable to get the result.
2, u can have a "flag" field in the table and set the flag when u click the buttons.
or , try in the following way:
bind the data from database to a datatable like "dbTable". Use dbTable to bind the gridview.
on gridview_rowDeleting ...write following code...
dbTable.Rows[e.RowIndex].Delete();
Gridview.DataSource =dbTable;
GridView.DataBind();