DataTable dtUserWBS = BLL.UserWBSGM.GetData(Util.Configure.UserID);
dtUserWBS.Rows.InsertAt(dtUserWBS.NewRow(), 0);
dtUserWBS.Rows[0]["WBS"] = "";
dtUserWBS.Rows[0]["Memo"] = "全部";
comboBoxWBS.ValueMember = "WBS";
comboBoxWBS.DisplayMember = "Memo";
comboBoxWBS.DataSource = dtUserWBS;
comboBoxWBS.SelectedIndex = 0;
C# ComboBox控件显示内容和存数据库ID的两个属性
最新推荐文章于 2021-11-17 21:23:47 发布