第一种方法

 

DropDownList1.Items.Insert(0,"请选择XXX"); 

第二种方法


在第一个位置插入一个项就可以

DropDownList1.Items.Insert(0, new ListItem("---请选择---", "0")); 

相关文章:

  • 2021-06-28
  • 2021-09-05
  • 2022-12-23
  • 2021-10-07
  • 2022-01-16
  • 2021-11-12
  • 2021-06-12
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2022-01-12
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
相关资源
相似解决方案