private DataTable loadDataToUI() { DataTable dt = new DataTable(); dt = lbangDAL.getMaLoaibang(lbangDTO); return(dt); }
private void loadMasterData() { lblDTO = new clsLoaiBanglai_DTO(); DataTable dt = new DataTable(); dt = lblDAL.getMaLoaibang(lblDTO); cboLoaiBang.ValueField = "MaLoaiBang"; cboLoaiBang.TextField = "TenLoai"; cboLoaiBang.DataSource = dt; cboLoaiBang.DataBind(); //GridViewDataComboBoxColumn gcloaibang = gvDotThi.Columns["TenLoai"] as GridViewDataComboBoxColumn; //gcloaibang.PropertiesComboBox.DataSource = dt; //gclDiemThi.PropertiesComboBox.ValueField = "MaDienThi"; //gclDiemThi.PropertiesComboBox.TextField = "TenDiemThi"; //GridViewDataCheckColumn gclTrangThai = gvDotThi.Columns["TrangThai"] as GridViewDataCheckColumn; //gclTrangThai.PropertiesCheckEdit.DisplayTextChecked = "Chon"; }
private void loadMasterData() { DataTable dt = new DataTable(); // dt = ctdthiDAL.getCauTrucDeThi(ctdthiDTO); dt = lbangDAL.getMaLoaibang(lbangDTO); cboLoaiBang.ValueField = "MaLoaiBang"; cboLoaiBang.TextField = "MaLoaiBang"; cboLoaiBang.DataSource = dt; cboLoaiBang.DataBind(); // dt = choilbangDAL.getCauHoi_LoaiBang(choilbangDTO); dt = choiDAL.getCauHoi(choiDTO); GridViewDataComboBoxColumn gclMaCauHoi = gvCauHoiLoaiBang.Columns["MaCauHoi"] as GridViewDataComboBoxColumn; gclMaCauHoi.PropertiesComboBox.DataSource = dt; }