日期:2014-05-18 浏览次数:20488 次
dropdownlist ddl = (dropdownlist)e.Row.Cells[3].FindControl("dropdownlist");
------解决方案--------------------
foreach (GridViewRow r in this.GridView1.Rows)
{
DropDownList ddl = r.FindControl("id") as DropDownList ;
}
------解决方案--------------------
DropDownList ddl = this.GridView1.HeaderRow.FindControl("DropDownList1") as DropDownList;