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