private void loadGrvDataEmployee(ref string err) { bll = new BLL_Employee(); List_Employee = new DataTable(); List_Employee = bll.getEmployee(ref err); dataGridView1.DataSource = List_Employee; }
private void cbo_stt_SelectedIndexChanged(object sender, EventArgs e) { List_Employee = new DataTable(); bll = new BLL_Employee(); if (cbo_stt.SelectedIndex == 0) { List_Employee = bll.getEmployee(ref err); } if (cbo_stt.SelectedIndex == 1) { List_Employee = bll.Load_Employee_with_Stt(ref err, false); } if (cbo_stt.SelectedIndex == 2) { List_Employee = bll.Load_Employee_with_Stt(ref err, true); } dataGridView1.DataSource = List_Employee; }