Beispiel #1
0
 private void XemDSLop_Load(object sender, EventArgs e)
 {
     cbTen.DataSource    = myLopBUL.LayDsLop();
     cbTen.DisplayMember = "TenLop";
     cbTen.ValueMember   = "TenLop";
     dgvDSLop.DataSource = myLopBUL.LayDsLop();
 }
Beispiel #2
0
 private void Lop_Load(object sender, EventArgs e)
 {
     // dgvLop.AutoGenerateColumns = false;
     cbGiaoVienChuNhiem.DataSource    = myCanBoGiaoVien.LayDsCanBo();
     cbGiaoVienChuNhiem.DisplayMember = "HoTen";
     cbGiaoVienChuNhiem.ValueMember   = "MaCanBoGiaoVien";
     dgvLop.DataSource = myLop.LayDsLop();
 }
 private void HoSoHocSinh_Load(object sender, EventArgs e)
 {
     cboMaLop.DataSource    = lop.LayDsLop();
     cboMaLop.DisplayMember = "Tenlop";
     cboMaLop.ValueMember   = "MaLop";
     cboGT.DataSource       = myHSHS.LayGT();
     cboGT.DisplayMember    = "GioiTinh";
     cboGT.ValueMember      = "GioiTinh";
     dgvHSHS.DataSource     = myHSHS.LayDanhSachHoSoHocSinh();
 }
        public void hienthi()
        {
            dgv.DataSource     = myPhanCong.LayDanhSachPhanCongGiangDay();
            cbgv.DataSource    = mycbgv.LayDsCanBo();
            cbgv.DisplayMember = "HoTen";
            cbgv.ValueMember   = "MaCanBoGiaoVien";


            cblop.DataSource    = mylop.LayDsLop();
            cblop.DisplayMember = "TenLop";
            cblop.ValueMember   = "MaLop";

            cbmon.DataSource    = mymon.LayDanhSachMonHoc();
            cbmon.DisplayMember = "TenMon";
            cbmon.ValueMember   = "MaMon";
        }
 private void DanhSachHocSinh_Load(object sender, EventArgs e)
 {
     cbTenLop.DataSource    = lopBUL.LayDsLop();
     cbTenLop.DisplayMember = "TenLop";
     cbTenLop.ValueMember   = "TenLop";
 }
Beispiel #6
0
 private void _1_Load(object sender, EventArgs e)
 {
     cboTenLop.DataSource    = lop.LayDsLop();
     cboTenLop.DisplayMember = "TenLop";
     cboTenLop.ValueMember   = "TenLop";
 }
 private void dgvLop_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     dgvLop.DataSource = myLop.LayDsLop();
 }