Results 1 to 5 of 5

Thread: Radio buttons in a datagrid

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Unhappy Radio buttons in a datagrid

    I've added radio buttons to a templatecolumn in a datagrid like so:

    Code:
    <asp:TemplateColumn HeaderText="Sel. One" ItemStyle-HorizontalAlign="Center">
    	<HeaderStyle Width="0%">
    	</HeaderStyle>
    	<ItemTemplate> 
    		<input type="radio" name="rdSelect" id="rdSelect" runat="server">
    	</ItemTemplate>
    </asp:TemplateColumn>
    Once the datagrid is populated, the radio column does show up, but I am able to select all radio buttons. What should I do to allow the selection of just one radio button?
    Last edited by mendhak; Jan 19th, 2005 at 11:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width