473,786 Members | 2,806 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RadioButton\Dat aGrid

gh

I am using the 1.1 .netframework and I use the template code below to
define a radio button in the grid rows.

<ASP:TemplateCo lumn headertext="Sel ect">
<HeaderStyle width="50px"></HeaderStyle>
<ItemStyle wrap="False" horizontalalign ="Center"></ItemStyle>
<ItemTemplate>< asp:RadioButton id="cbSelect" groupname="Sele ct"
runat="server"> </asp:RadioButton >
</ItemTemplate>
<FooterStyle wrap="False"></FooterStyle>
</ASP:TemplateCol umn>

I thought giving the button a group name was supposed to allow only one
selection at a time, but it is not working.

Is there a way client side to be able to only allow 1 radio button to be
checked at a time?

Thanks

Mar 8 '06 #1
1 1472
Hi GH,

It's better to use CheckBox.

HTH

Elton Wang

"gh" wrote:

I am using the 1.1 .netframework and I use the template code below to
define a radio button in the grid rows.

<ASP:TemplateCo lumn headertext="Sel ect">
<HeaderStyle width="50px"></HeaderStyle>
<ItemStyle wrap="False" horizontalalign ="Center"></ItemStyle>
<ItemTemplate>< asp:RadioButton id="cbSelect" groupname="Sele ct"
runat="server"> </asp:RadioButton >
</ItemTemplate>
<FooterStyle wrap="False"></FooterStyle>
</ASP:TemplateCol umn>

I thought giving the button a group name was supposed to allow only one
selection at a time, but it is not working.

Is there a way client side to be able to only allow 1 radio button to be
checked at a time?

Thanks

Mar 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.