gridview 获得某行的 DropDownList的值
我在gridview 第4列上增加了一个DropDownList
<asp:DropDownList ID="ddlmodname" runat="server" name ="ddlmodname" AutoPostBack="True">
<asp:ListItem>test1</asp:ListItem>
<asp:ListItem>test2</asp:ListItem>
<asp:ListItem>test3</asp:ListItem>
</asp:DropDownList>
软后选择一个值 例如 ddl.SelectedValue.ToString(); 是test2
然后更新这一行。注意仅仅用这一行的选择的 DropDownList 的值 更新当前行。