在绑定数据源后,设置选中的值

(1) dropdowslist.selectedIndex=索引值(数字);
(2) dropdownlist.Items.findbyvalue(你的值).selected=true  
(3) dropdownlist.Items.findbytext(你的值).selected=true

 

转自https://blog.csdn.net/wangganggang90/article/details/8468027

相关文章:

  • 2021-08-27
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-05-31
  • 2021-09-21
  • 2021-05-31
相关资源
相似解决方案