我是把数据库里的数据绑入gridview中,现在需要其中某列的单元格显示为下拉框的形式,而不是默认的textbox格式?
怎么做???
怎么做???
解决方案 »
- 2个表之间的数据插入问题
- 关于listbox的问题
- 如何测试logout后的session过期?
- asp.net错误日志处理里面怎样过滤404错误?
- textbox在Page_Load赋值之后update不能修改的问题。帮帮忙.
- 员工基本信息管理系统怎么做?
- 关于弹出窗执行后点击确定后关闭子页面
- 怪问题,ASP.NET项目突然不能调试了
- 有关DataTable.Select的表达式中in 用法,请高手帮忙---在线等待!
- vs2015无法选择framework版本
- asp.net里面怎么实现让整个页面的所有控件属性全部为enable=false
- 网站放到 windows server 2003服务器中,服务器在安装时设置的连接数是5,这样设置对大量用户访问有影响吗?
http://dotnet.aspx.cc/file/Add-Delete-Update-Edit-Data-With-Paging-in-GridView.aspx
<ItemTemplate> <asp:DropDownList ID="uClassName" runat="server">
<asp:ListItem Text="小学" Value="小学"></asp:ListItem>
<asp:ListItem Text="中学" Value="中学"></asp:ListItem>
<asp:ListItem Text="高中" Value="高中"></asp:ListItem>
<asp:ListItem Text="大学" Value="大学"></asp:ListItem>
</asp:DropDownList>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddpRole" runat="server">
<asp:ListItem Value="0">--角色--</asp:ListItem>
<asp:ListItem Value="2" >高级管理员</asp:ListItem>
<asp:ListItem Value="3" >项目管理员</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("rname") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>是这个意思吧
楼主这样;
http://hi.csdn.net/space-10148426-do-album-picid-1041877.html
呜呜,我要继续加油啦。