在datagrid里怎么加入RadioButtonList? 看http://www.codeproject.com/cs/miscctrl/ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没这么用过,要是我的话,在有多个选项时,我就换用DropDownList控件了。 如果是在编辑的时候显示RadioButtonList,在html里这样写<asp:TemplateColumn HeaderText = "性别"> <ItemStyle Width="15%"></ItemStyle> <ItemTemplate> <asp:Label Runat=server ID="labSex" Text='<%# DataBinder.Eval(Container.DataItem,"HMNSEX")%>'></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:RadioButtonList ID="rdlSex" Runat="server"> <asp:ListItem>男</asp:ListItem> <asp:ListItem>女</asp:ListItem> </asp:RadioButtonList> </EditItemTemplate></asp:TemplateColumn>如果是page_load的时候就显示,这样写<asp:TemplateColumn HeaderText = "性别"> <ItemStyle Width="15%"></ItemStyle> <ItemTemplate> <asp:RadioButtonList ID="rdlSex" Runat="server"> <asp:ListItem>男</asp:ListItem> <asp:ListItem>女</asp:ListItem> </asp:RadioButtonList> </ItemTemplate></asp:TemplateColumn>如果要求RadioButtonList中选中的项由数据库中的数据决定,可以用一个循环来重新绑定 web...我的意思是各个选项分别位于不同列,而不是在同一个cell里 这个radio不和数据库关联。怎么动态的加? 为什么异常都是G? 在这我也提问下[]的问题 看了这篇文章,我觉得学编程也是不能死抠语法,高手们觉得是不是? 下面的语句要怎么修改才是正确的,总提示错误. 除了水晶报表,还有没有别的比较好用的报表 请问大虾,我想要用表格的形式显示出来,帮我看一下代码。实现不了,清指导。(在线等) 如何控制上传图片时让它大小为一寸,文件大小为20K 请教:如何在运行大量计算时弹出新的"请稍候..."的窗体。。。 IP地址分配问题,比较复杂!高手进来讨论!(有图) 重大问题! 一个看起来很简单的判断是否为null 的问题,实际很难 !!! 可以用ado.net来生成存储过程吗?
<asp:TemplateColumn HeaderText = "性别">
<ItemStyle Width="15%"></ItemStyle>
<ItemTemplate>
<asp:Label Runat=server ID="labSex" Text='<%# DataBinder.Eval(Container.DataItem,"HMNSEX")%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButtonList ID="rdlSex" Runat="server">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList>
</EditItemTemplate>
</asp:TemplateColumn>如果是page_load的时候就显示,这样写
<asp:TemplateColumn HeaderText = "性别">
<ItemStyle Width="15%"></ItemStyle>
<ItemTemplate>
<asp:RadioButtonList ID="rdlSex" Runat="server">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:RadioButtonList> </ItemTemplate>
</asp:TemplateColumn>如果要求RadioButtonList中选中的项由数据库中的数据决定,可以用一个循环来重新绑定