【发布时间】:2015-09-01 08:44:20
【问题描述】:
我正在尝试在多个下拉列表中将位置 0 数据绑定为“”,我的代码如下:
For Each ctrl As Control In Me.Controls
If TypeOf ctrl Is DropDownList Then
ctrl.DataBind()
ctrl.items.insert(0, "")
End If
Next
我收到错误:错误 BC30456 'items' is not a member of 'Control'
我有点不知所措...请帮忙!
谢谢蒂姆,那么将“”添加到保管箱的代码是什么..
【问题讨论】: