/// <summary> /// 初始化所有用人单位列表 /// </summary> private void init_ent() { Student.BLL.ENTERPRISE_INFO entBll = new BLL.ENTERPRISE_INFO(); DataSet ds = entBll.GetAllList(); this.cbb_ent.Properties.Items.Clear(); cbb_ent.EditValue = null; cbb_ent.Properties.NullText = "--请选择--"; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { string entName = ds.Tables[0].Rows[i]["ENTNAME"].ToString(); this.cbb_ent.Properties.Items.Add(entName); } //this.cbb_ent.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; }