private void LoadComboboxLopHoc(object sender, EventArgs e) { CboUtil.SetDataSource(comboBoxEditLop, _lopBUS.LayDTLop_MaNam_MaKhoi( CboUtil.GetValueItem(comboBoxEditNamHoc), CboUtil.GetValueItem(comboBoxEditKhoi) ), "MaLop", "TenLop", 0); comboBoxEditLop_SelectedIndexChanged(sender, e); }
/// <summary> /// Load lại combobox lớp học theo năm và khối /// </summary> private void LoadComboboxLopHoc(object sender, EventArgs e) { CboUtil.SetDataSource(comboBoxEditLop, _lopBUS.LayDTLop_MaNam_MaKhoi( CboUtil.GetValueItem(comboBoxEditNamHoc), CboUtil.GetValueItem(comboBoxEditKhoi) ), "MaLop", "TenLop", 0); comboBoxEditLop_SelectedIndexChanged(sender, e); HienThiHoSoHocSinh(gridViewDSHocSinh.GetRowCellValue(0, "MaHocSinh")); }
private void HienThi_DSLop() { gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(CboUtil.GetValueItem(comboBoxEditNamHoc), CboUtil.GetValueItem(comboBoxEditKhoi)); DisableControls(editing: false); }
private void HienThi_DSLop() { gridControlDSLop.DataSource = _lopBUS.LayDTLop_MaNam_MaKhoi(cmbNamHoc.SelectedValue.ToString(), cmbKhoi.SelectedValue.ToString()); DisableControls(editing: false); }