473,498 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mutually exclusive radio button

js
I include a asp:RadioButton in an ItemTemplate of a DataGrid like the
following. However, the radio buttons are not mutual exclusive where
select one will deselect the rest of the radio buttons. I know there is
a similar bug with RadioButton in a DataList. Does this bug also apply
to Datagrid? If not, how can I set them to be selected mutually
exclusively?

<asp:datagrid id="MyDataGrid" runat="server" CssClass="InventoryTable">
<ItemStyle CssClass="inventoryListItemStyle"></ItemStyle>
<AlternatingItemStyle CssClass="inventoryListAlternateItemStyle" />
<HeaderStyle CssClass="inventoryListHeaderStyle"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:RadioButton ID="rdoSelected" Runat="server"
GroupName="rdoGroup"/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>

Nov 19 '05 #1
2 3203
Try the RadioButtonList instead.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I include a asp:RadioButton in an ItemTemplate of a DataGrid like the
following. However, the radio buttons are not mutual exclusive where
select one will deselect the rest of the radio buttons. I know there
is a similar bug with RadioButton in a DataList. Does this bug also
apply to Datagrid? If not, how can I set them to be selected mutually
exclusively?

<asp:datagrid id="MyDataGrid" runat="server"
CssClass="InventoryTable">
<ItemStyle CssClass="inventoryListItemStyle"></ItemStyle>
<AlternatingItemStyle CssClass="inventoryListAlternateItemStyle" />
<HeaderStyle CssClass="inventoryListHeaderStyle"></HeaderStyle>
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:RadioButton ID="rdoSelected" Runat="server"
GroupName="rdoGroup"/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>


Nov 19 '05 #2
js
This won't work because I need only ONE radio button in the first
column of each data row in DataGrid. I need to allow sorting on the
DataGrid header which RadioButtonList does not support or it is not
easy to implement. Any more idea? Thanks.

Nov 19 '05 #3

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

Similar topics

5
1861
by: wooks | last post by:
I have defined a schema with an xsd:choice element for 2 mutually exclusive fields. When both are present I get an error which is good, but what is not so good is the error message which says...
3
459
by: softengine | last post by:
Can and how do you alter a data view to include a look up field from another data table? The data table of the dataview only has the key, the value I need is in another data table. Can and how...
5
3701
by: WertmanTheMad | last post by:
Ive been playing with this for a few days and thought I might thow it out for seggestions. I have Several Queries that need counts returned The Queries are Mutually Exclusive meaning whatever...
2
1586
by: MR. UNDERHILL | last post by:
I want to use a radio button as a template column in a data grid, what is happening is that the exclusive selection is not working since the internal radio button name is being generated by the...
2
1909
by: Stimp | last post by:
I'm getting the error: 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive when I try to populate a series of dropdowns... any idea what I could be doing wrong here? ...
0
1274
by: sloan | last post by:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316495 Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control ... Has 2.0 fixed this bug ?
0
1260
by: sloan | last post by:
BUG: Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control http://support.microsoft.com/default.aspx?scid=kb;EN-US;316495 I programmed up a pretty simple page in 2.0. ...
8
1956
by: arun | last post by:
Hi Can any one suggest me how to access the mutually exclusive check boxes in a table of 7 rows by 14 columns. Only one can be selected in each row. Other than checking each one with if...
2
3362
by: arun | last post by:
Hi Can any one suggest me how to access the mutually exclusive check box extender in a table of 7 rows by 14 columns. Only one can be selected in each row. Other than checking each one with if...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7004
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
7167
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
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
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...
1
4915
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...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.