在gridview的EditItemTemplate加入:DropDownList控件,如何使update时能更新成DropDownList选中的值?
<asp:TemplateField HeaderText="是否隐藏" SortExpression="IsShow">
<EditItemTemplate>
<asp:DropDownList id="DropDownList1" runat="server">
<asp:ListItem Value="true">是</asp:ListItem>
<asp:ListItem Value="false">否</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
在gridview的EditItemTemplate加入:DropDownList控件,如何使update时能更新成DropDownList选中的值?