试图让 findcontrol 工作,以便我可以设置模板字段中下拉列表的默认值,但我没有运气。难道我做错了什么?
Dim drdList As DropDownList
For Each row As GridViewRow In gridviewComputer.Rows
drdList = gridviewComputer.Rows(e.NewEditIndex).FindControl("statusDropDown")
Next
试图让 findcontrol 工作,以便我可以设置模板字段中下拉列表的默认值,但我没有运气。难道我做错了什么?
Dim drdList As DropDownList
For Each row As GridViewRow In gridviewComputer.Rows
drdList = gridviewComputer.Rows(e.NewEditIndex).FindControl("statusDropDown")
Next