There is no need to do all this, you are opening and closing your connection to the db twice. Instead of this, why dont you store 'isactive' in your table row depending on which button is clicked (submit or reject).
DataGridItem drow = (DataGridItem)(sender as Control).Parent.Parent;
RadioButton rbpApprove = (RadioButton)drow.FindControl("rbtnapprove");
RadioButton rbpReject = (RadioButton)drow.FindControl("rbtnreject");
SqlCommand cmd;
string empid = dgi.Cells[0].Text;
string employeename = dgi.Cells[2].Text;
string designation = dgi.Cells[3].Text;
if (rbpApprove.Checked == true)
{
cmd = new SqlCommand("insert into [table] values ('" + empid + "','" + employeename + "','" + designation + "',1)", conn);
//see here you are inserting a 1 which will be for column 'isactive'
}
else if (rbpReject.Checked == true)
{
cmd = new SqlCommand("insert into [table] values ('" + empid + "','" + employeename + "','" + designation + "',0)",conn);
//see here you are inserting a 0 which will be for column 'isactive'
}
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
}