在ASP.NET GridView中,可以通过以下步骤从编辑行的ItemList中获取DropDownList的值:
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
GridView1.EditIndex = e.NewEditIndex;
// 获取编辑行的DropDownList的值
DropDownList ddlName = (DropDownList)GridView1.Rows[e.NewEditIndex].FindControl("ddlName");
string selectedValue = ddlName.SelectedValue;
// 其他操作
}
通过以上步骤,您可以在ASP.NET GridView中的编辑行中获取DropDownList的值。