473,399 Members | 2,159 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,399 software developers and data experts.

RadioButton's in different containers belonging to the same group.

Hi,

I've got 9 RadioButton's in a TableLayoutPanel container

They all need to be in the same group, but 2 of them are in
FlowLayoutPanel containers within the cells of the TableLayoutPanel,
hence i have 1 group of 7 RadioButton's and 2 groups of 1 RadioButton
and not 1 group of 9 RadioButton's.

Is there any way to group RadioButton's other than the containers they
belong to?

Thanks.

Jan 15 '07 #1
2 2691

Velislav wrote:
Is there any way to group RadioButton's other than the containers they
belong to?
Yes, use set of single radiobuttons with same GroupName:
Ex.:
<asp:RadioButton ID="r1" runat="server" GroupName="Group1"/>
<asp:RadioButton ID="r2" runat="server" GroupName="Group1" />
<table>
<tr>
<td><asp:RadioButton ID="r3" runat="server"
GroupName="Group2"/></td>
</tr>
<tr>
<td><asp:RadioButton ID="r4" runat="server"
GroupName="Group2"/></td>
</tr>
........
</table>

Jan 15 '07 #2
>
Yes, use set of single radiobuttons with same GroupName:
Ooops, forgot to explicitly mention these are
System.Windows.Forms.RadioButton's, not
System.Web.UI.WebControls.RadioButton's.

The Windows control doesn't have the GroupName property and (at first
glance) the container it belongs to appears to be the only way of
grouping a number of them.

Thanks though.

Jan 16 '07 #3

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

Similar topics

8
by: VK | last post by:
Hi! What I'm missing in following code? Cannot get the values of radiobuttons. Starting only one class (GetVariant), it works. When I put two classes together, it doesn't. Regards, VK from...
0
by: rodrigo | last post by:
I have a Asp.net table control that I dynamically add rows from a SQL database. Inside the table, I add radiobuttons and they all have different ID numbers according to BindChain() Looking In...
3
by: sofie | last post by:
Hello all, I use the following javascript function in a html document to set the level of one of eight available radiobuttons. The line that's commented out works fine under IE, but I need to...
2
by: Sascha | last post by:
hello ng i have a group of 6 radiobuttons with different values. when i check a radiobutton, i have to calculate something with the value of the new ckecked radiobutton. can please someone...
3
by: visual2005beta_developer | last post by:
I have the following problem (especially with the groupname-attribut of the RadioButton-Control) when developing in Visual Studio 2005 Beta. I load an ascx-control in an aspx-page. This...
8
by: ldndude | last post by:
Heya, I think I shot myself in the foot when I set this up Overview: I have a dynamically generated page for listing pictures for a project I am working on for my boss. To put it simply...this...
5
by: Matt B | last post by:
I know this is a bit of nonstandard behavior, but I would like the Enter key to move focus through a group of radiobuttons without selecting them. The user would then have to use Space or actually...
2
by: logicthiru | last post by:
hai it is possible to display a clicked radiobutton in a text box in core java please help me
8
by: =?Utf-8?B?UmljaA==?= | last post by:
If you enclose a group of radiobuttons (option buttons in MS Access) in an option group control (a frame control) in Access -- the frame control will return the index of the option button that is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.