473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RadioButton\DataGrid

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:TemplateColumn headertext="Select">
<HeaderStyle width="50px"></HeaderStyle>
<ItemStyle wrap="False" horizontalalign="Center"></ItemStyle>
<ItemTemplate><asp:RadioButton id="cbSelect" groupname="Select"
runat="server"></asp:RadioButton>
</ItemTemplate>
<FooterStyle wrap="False"></FooterStyle>
</ASP:TemplateColumn>

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 1451
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:TemplateColumn headertext="Select">
<HeaderStyle width="50px"></HeaderStyle>
<ItemStyle wrap="False" horizontalalign="Center"></ItemStyle>
<ItemTemplate><asp:RadioButton id="cbSelect" groupname="Select"
runat="server"></asp:RadioButton>
</ItemTemplate>
<FooterStyle wrap="False"></FooterStyle>
</ASP:TemplateColumn>

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.