private void DeleteEmpButton_Click(object sender, EventArgs e) { Employee.deleteemployeesDetails(EmpIdtxt.Text); MessageBox.Show("Record Deleted Successfully!"); dataGridView1.DataSource = Employee.showEmployeebyID(EmpIdtxt.Text); }
private void button1_Click(object sender, EventArgs e) { dataGridView1.DataSource = Employee.showEmployeebyID(EmpIdtxt.Text); }
private void AddEmployeeButton_Click(object sender, EventArgs e) { dataGridView1.DataSource = Employee.showEmployeebyID(Employee.employeeID.ToString()); dataGridView2.DataSource = Employee.searchemployeesalarydetails(Employee.employeeID.ToString()); }