请问怎样对GridView模板列EditItem中的DropDownList进行数据绑定
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string sCgyNam = ((Label)e.Row.Cells[1].FindControl("lbCgyNam")).Text.Trim();
DropDownList drop = (DropDownList)e.Row.FindControl("dropCgyNam"); // 找不到dropCgyNam
Function.BindDropDownList(drop, "nam", "id", "类别");
//drop.Items.FindByText(sCgyNam).Selected = true;
}
}