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