예제 #1
0
        private void fSuaKyThi_Load(object sender, EventArgs e)
        {
            //combo box LoaiKyThi
            _dtloaikythi               = _objloaikythibus.GetAllLoaiKyThi();
            cbbLoaiKyThi.DataSource    = _dtloaikythi;
            cbbLoaiKyThi.ValueMember   = "MaLoaiKyThi";
            cbbLoaiKyThi.DisplayMember = "TenLoaiKyThi";
            cbbLoaiKyThi.SelectedIndex = -1;

            //combobox LoaiDeThi
            _dtloaidethi               = _objloaidethibus.GetAllLoaiDeThi();
            cbbLoaiDeThi.DataSource    = _dtloaidethi;
            cbbLoaiDeThi.ValueMember   = "MaLoaiDeThi";
            cbbLoaiDeThi.DisplayMember = "TenLoaiDeThi";
            cbbLoaiDeThi.SelectedIndex = -1;

            //combobox PhongHoc
            _dtphonghoc               = _objphonghocbus.GetAllPhongHoc();
            cbbPhongThi.DataSource    = _dtphonghoc;
            cbbPhongThi.ValueMember   = "MaPhong";
            cbbPhongThi.DisplayMember = "TenPhong";
            cbbPhongThi.SelectedIndex = -1;

            //combobox LopHoc
            _dtlop               = _objlopbus.GetAllLop();
            cbbLop.DataSource    = _dtlop;
            cbbLop.ValueMember   = "MaLop";
            cbbLop.DisplayMember = "TenLop";
            cbbLop.SelectedIndex = -1;


            LoadData();
            dgvDSKyThi.RowHeadersVisible = false;
        }