set the command name of that button to "Delete" and then check the command name in the datagrid's rowcommand property and perform delete operation and bindgrid operation there so the grid after deleting that record will be updated...
also dont forget to make the id property as a datakey so you can pass it in command argument and delete the row you wish to.
for eg..
protected void datagrid_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
if (e.CommandName == "Delete")
{
int Args = Convert.ToInt32(e.CommandArgument);
string _id = grddisplayrequest.DataKeys[Args]["ID"].ToString();
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
}
I hope this helped you.
Please give vote if this answer helped you. :)