Dictionary<int, string> status = new Dictionary<int, string>();
BindingSource bs = new BindingSource();
bs.DataSource = status;
cmb.DataSource = bs;
cmb.DisplayMember = “Value”;
cmb.ValueMember = “Key”;
C# combobox绑定字典
最新推荐文章于 2023-06-09 13:28:09 发布