this.DropDownList_设备列表.DataSource = dt_eq;//设置数据源
this.DropDownList_设备列表.DataTextField = "equipment_name";//设置所要读取的数据表里的列名
this.DropDownList_设备列表.DataValueField = "equipment_id";
this.DropDownList_设备列表.DataBind();//数据绑定
this.DropDownList_设备列表.SelectedIndex = 0;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-10-26
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2021-06-12
  • 2021-09-04
  • 2022-12-23
  • 2021-08-27
  • 2022-02-23
相关资源
相似解决方案