日期:2014-05-18  浏览次数:20418 次

GridView:中建立dropdownlist 性别怎么操作
GridView:中建立dropdownlist   性别怎么操作?     数据类型为   bit

------解决方案--------------------
<asp:GridView ID= "gridview " SkinID= "GridView " runat= "server " Height= "100% "
Width= "100% ">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:DropDownList ID= "DropDownList " runat= "server ">
<asp:ListItem Value= "0 " Text= "男 "> </asp:ListItem>
<asp:ListItem Value= "1 " Text= "女 "> </asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

用这个