/// <summary> /// delete button to delete the data from database based on the employeeid /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DeleteButton(object sender, EventArgs e) { em.empid = int.Parse(txtEmpId.Text); user.DeleteEmployeeBAL(em); user.GetData(); DataTable dt = new DataTable(); dt = user.GetData(); empGrid.DataSource = dt; ClearData(); }