private DataTable loadDataToUI(clsDotThi_DTO dotthiDTO) { DataTable dt = new DataTable(); dt = dotthiDAL.getDotThi(dotthiDTO); return(dt); }
private void loadMasterData() { dotthiDTO = new clsDotThi_DTO(); DataTable dt = new DataTable(); dt = dotthiDAL.getDotThi(dotthiDTO); cboDotThi.ValueField = "MaDotThi"; cboDotThi.TextField = "MaDotThi"; cboDotThi.DataSource = dt; cboDotThi.DataBind(); //GridViewDataComboBoxColumn gcCathi = gvCaThi.Columns["MaDotThi"] as GridViewDataComboBoxColumn; //gcCathi.PropertiesComboBox.DataSource = dt; //gclDiemThi.PropertiesComboBox.ValueField = "MaDienThi"; //gclDiemThi.PropertiesComboBox.TextField = "TenDiemThi"; //GridViewDataCheckColumn gclTrangThai = gvDotThi.Columns["TrangThai"] as GridViewDataCheckColumn; //gclTrangThai.PropertiesCheckEdit.DisplayTextChecked = "Chon"; }