You can use
OnRowDeleting property of GRIDVIEW
protected void Countrylist_Rowdelete(object sender, GridViewDeleteEventArgs e)
{
int intCode = Convert.ToInt32(Countrylist.DataKeys[e.RowIndex].Value);
string strQuery = "DELETE FROM Country_master " +
"WHERE CountryId=" + intCode + "";
if (con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
OleDbCommand oledbcmd = new OleDbCommand(strQuery, con);
oledbcmd.ExecuteNonQuery();
Display();
}
You can call Your Display() On PageLoad()..
Hope This Helps!!