private void frmHocSinh_Load(object sender, EventArgs e)
        {
            //load ds lớp
            cboLop.DataSource            = LopHocBUS.LayDSLop();
            cboLop.DisplayMember         = "TenLop";
            cboLop.ValueMember           = "MaLop";
            cboLop.SelectedIndexChanged += new EventHandler(cboLop_SelectedIndexChanged);

            loadDSHocSinh();
            dgvHocSinh.AutoResizeColumns();
        }
Example #2
0
        protected void ChonLop()
        {
            SinhVienDTO sv = new SinhVienDTO();
            LopHocDTO   lh = new LopHocDTO();

            cboTim.DataSource    = SinhVienBUS.LayDSLopHoc(sv);
            cboTim.DisplayMember = "Ma_Lop";
            cboTim.ValueMember   = "Ma_Lop";

            cboLop.DataSource    = LopHocBUS.LayDSLop(lh);
            cboLop.DisplayMember = "Ma_Lop";
            cboLop.ValueMember   = "Ma_Lop";
        }
Example #3
0
 public void LoadDSLOP()
 {
     dgvDSLOP.DataSource = LopHocBUS.LayDSLop();
 }