Пример #1
0
        //laod danh sách môn học vào datagridview
        public void LoadDanhSachMonHocToDatagridview()
        {
            string mmh = cboChonNganh_MH.SelectedValue.ToString();

            dgvDanhSachMonHoc.DataSource = monHocService.GetMonHocByNganh(mmh);
            CountRowsMonHoc();
        }
 //laod môn học vạo combobox
 public void LoadMonHocToCbo()
 {
     cboChonMonHoc_TKB.ResetText();
     cboChonMonHoc_TKB.DataSource    = monHocService.GetMonHocByNganh(cboChonNganh_TKB.SelectedValue.ToString()).ToList();
     cboChonMonHoc_TKB.DisplayMember = "TenMonHoc";
     cboChonMonHoc_TKB.ValueMember   = "MaMonHoc";
 }