如何实现gridview里的dropdownlist

2024-12-30 16:30:25
推荐回答(1个)
回答1:

protected void gridview1_RowDataBound(object sender,GridViewRowEventArgs e){if (e.Row.RowType == DataControlRowType.DataRow){if (e.Row.FindControl("ddlManager") != null){DropDownList ddl = (DropDownList)e.Row.FindControl("ddlManager");