mutually exclusive radio button

J

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>
 
J

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top