private void cbothongke_SelectedIndexChanged(object sender, EventArgs e)
 {
     lbthongke.Text = "";
     if (cbothongke.SelectedIndex == 0)
     {
         LoadGrid();
         return;
     }
     dgv_DanhSach.DataSource = SearchData.Thongkediem(cbothongke.SelectedIndex, _idkythi);
     lbthongke.Text          = @"Có " + dgv_DanhSach.Rows.Count + @" Sinh viên có điểm " + cbothongke.Text;
 }
Example #2
0
 private void cbothongke_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (cbothongke.SelectedIndex == 0)
     {
         LoadGrid();
     }
     else
     {
         dgv_DanhSach.DataSource = string.IsNullOrEmpty(txtKhoa.Text)
             ? SearchData.Thongkediem(cbothongke.SelectedIndex)
             : SearchData.Thongkediem(cbothongke.SelectedIndex, txtKhoa.Text);
         lbthongke.Text = @" " + dgv_DanhSach.Rows.Count + @" Sinh viên";
     }
 }