List<KeyValuePair<object, string>> dit = new List<KeyValuePair<object, string>>();
            dit.Add(new KeyValuePair<object, string>(1, "测试操作类型"));
            dit.Add(new KeyValuePair<object, string>(2, "操作类型"));
           
            this.cbxMethod.DataSource = dit;
            this.cbxMethod.DisplayMember = "Value";
            this.cbxMethod.ValueMember = "Key";

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-01-16
  • 2021-11-29
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案