protected void hrStaffGV_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {

        TableCell EmpIDcell = hrStaffGV.Rows[e.RowIndex].Cells[2];

        string empToDelete = EmpIDcell.Text.Trim();

        try
        {
            EmployeeManager manager = new EmployeeManager();
            TransactionResponse response = new TransactionResponse();
            
            getOffClerkPanel.Visible = true;

            if (RemoveRB.SelectedValue == "RemOfficer")
            {
                response = manager.deleteHROfficerOrClerk(empToDelete, "Officer");
                getHROfficer();
                hrStaffGV.DataBind();
            }
            else if (RemoveRB.SelectedValue == "RemClerk")
            {
                response = manager.deleteHROfficerOrClerk(empToDelete, "Clerk");
                getHRClerk();
                hrStaffGV.DataBind();
            }
        }
        catch (Exception ex)
        {
            msgPanel.Visible = true;
            ErroroDIV.Visible = true;
            lblErrorMsg.Text = ex.ToString();
        }
    }