//加载学院 private void LoadAllSpecialityByDelFlag(int delFlag) { BLL.CollegeBLL bll = new BLL.CollegeBLL(); var list = bll.GetAllCollegeByDelFlag(delFlag); cbCollege.DataSource = list; cbCollege.DisplayMember = "Name"; cbCollege.ValueMember = "Id"; }
private void LoadAllCollegeByDelFlag(int delFalg) { BLL.CollegeBLL bll = new BLL.CollegeBLL(); dgvCollege.DataSource = bll.GetAllCollegeByDelFlag(delFalg, true); if (dgvCollege.Rows.Count > 0) { dgvCollege.Rows[0].Selected = false; } }