下面介绍三种对comboBox绑定的方式,分别是泛型中List和Dictionary,还有数据集DataTable

 一、List

      现在我们直接创建一个List集合,然后绑定

1 List<string> liStr = new List<string>();
2 liStr.Add("1");
3 liStr.Add("2");
4 liStr.Add("3");
5 cboBindValue.DataSource = liStr;
List

相关文章:

  • 2022-02-18
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2019-06-27
  • 2022-12-23
猜你喜欢
  • 2021-06-15
  • 2022-12-23
  • 2021-06-15
  • 2021-05-31
相关资源
相似解决方案