private void _Load_GridView() { gridcontrolMonHoc.DataSource = _monHocBUS.LayDT_DanhSach_MonHoc(false); using (var fCheckEdit = new RepositoryItemCheckEdit()) { fCheckEdit.ValueChecked = 1; fCheckEdit.ValueUnchecked = 0; gridColumnTrangThai.ColumnEdit = fCheckEdit; } gridColumnTrangThai.FieldName = "TrangThai"; _Diable_Control(editing: false); }
private void frmBC_TongKetMon_Load(object sender, EventArgs e) { CboUtil.SetDataSource(comboBoxEditNamHoc, _namHocBUS.LayDTNamHoc(), "MaNamHoc", "TenNamHoc", 0); CboUtil.SetDataSource(comboBoxEditHocKy, _hocKyBUS.LayDT_HocKy(), "MaHocKy", "TenHocKy", 0); CboUtil.SetDataSource(comboBoxEditKhoiLop, _khoiBUS.LayDT_Khoi(), "MaKhoi", "TenKhoi", 0); treeMonHoc.ParentFieldName = "MaMonHoc"; treeMonHoc.PreviewFieldName = "TenMonHoc"; treeMonHoc.DataSource = _monHocBUS.LayDT_DanhSach_MonHoc(); }
private void frmBangDiemMonHoc_Load(object sender, EventArgs e) { treeListLopHoc.ParentFieldName = "MaKhoi"; treeListLopHoc.PreviewFieldName = "TenKhoi"; treeListLopHoc.DataSource = _khoiBUS.LayDT_Khoi(); CboUtil.SetDataSource(comboBoxEditNamHoc, _namHocBUS.LayDTNamHoc(), "MaNamHoc", "TenNamHoc", 0); CboUtil.SetDataSource(comboBoxEditHocKy, _hocKyBUS.LayDT_HocKy(), "MaHocKy", "TenHocKy", 0); CboUtil.SetDataSource(comboBoxEditMonHoc, _monHocBUS.LayDT_DanhSach_MonHoc(), "MaMonHoc", "TenMonHoc", 0); CapNhatListLop(); }