Example #1
0
 private void loadDataGridView()
 {
     dt_emp = Employee_Methods.loadEmp_salary("paysal");
     if (dt_emp.Rows.Count > 0)
     {
         employee_salary_dataGridView.DataSource = null;
         employee_salary_dataGridView.DataSource = dt_emp;
         employee_salary_dataGridView.Columns["Join Date"].Visible = false;
     }
     else
     {
         AlertBox.ShowDialog("There is No Employee Registered.", AlertBox.AlertType.information, false);
         isClose = true;
     }
 }
 private void loadDataGridView()
 {
     dt_emp = Employee_Methods.loadEmp_salary("setsal");
     if (dt_emp.Rows.Count > 0)
     {
         emp_salary_dataGridView.DataSource = null;
         emp_salary_dataGridView.DataSource = dt_emp;
     }
     else
     {
         search_groupBox.Enabled = false;
         AlertBox.ShowDialog("There are no Employees Registered.!!!", AlertBox.AlertType.information, false);
         isclose = true;
     }
 }