gv1_RowEditing事件要获得某列的值,可是这一列已经不是TextBox,而是DropDownList ,DropDownList 的SelectedValue要获得该列的值,咋做呢?gv1.EditIndex = e.NewEditIndex;
DropDownList DropDownList11;
DropDownList11 = e.Row.FindControl("DropDownList11") as DropDownList; DropDownList11.SelectedValue=???
DropDownList DropDownList11;
DropDownList11 = e.Row.FindControl("DropDownList11") as DropDownList; DropDownList11.SelectedValue=???
gv1.EditIndex = e.NewEditIndex;
DropDownList drp1 = ((DropDownList)gvPerson.Rows[e.NewEditIndex].FindControl("drp1"));
string str = drp1.SelectedValue;
类型若是DropDownList 则转型然后取它的值
==
不懂