在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不和数据库关联。怎么动态的加? 求一方法思路 不用数据源绑定怎么向Datagrid中添加数据 如何用c#将数据库选中值回写到输入框中 大家是如何检查用户登录否?数据保存在哪里? 关于C#打印条形码的问题 请教:C# winform 在datagrid同时删除多行的问题 小算法:反求一个值是已知数组中某几个元素值的和 webForm 中如何让dropdownlist 出现水平滚动条 C# 中 struct 怎样用 关于树节点的拖拽问题!!!!!!!!!!!!!!!! 一个看起来很简单的判断是否为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中选中的项由数据库中的数据决定,可以用一个循环来重新绑定