I have a gridview control in which the data is dispalyed using a stored procedure. the grid has three columns, first one contains radiobuttons. the general idea is that the user should be able to select only one radiobutton from (in my case) 5 radiobuttons.
The problem in the present functionality is that i can select all the radiobuttons at the same time. I tried group the radiobuttons using 'groupname' property..it didn't work.
How can i fix it?
Here is the gridview control
<asp:GridView UseAccessibleHeader="true" ID="GridView1" CssClass="top" EmptyDataText="" HeaderStyle-CssClass="griditem_heading" HeaderStyle-BackColor="" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="0" Width="100%">
<EmptyDataRowStyle />
<EmptyDataTemplate>
<table cellspacing="0" cellpadding="0" border="0" id="dgd_Clinic_empty" width="100%">
<tr>
<td valign="Middle" align="Center" bgcolor="#cce57f" class="griditem_1">
<span class="smalltableheading"> </span>
</td>
<td valign="Middle" align="Center" bgcolor="#cce57f" class="griditem_1">
<span class="smalltableheading">Clinic Name</span>
</td>
<td valign="Middle" align="Center" bgcolor="#cce57f" class="griditem_1">
<span class="smalltableheading">Open</span>
</td>
</tr>
<tr>
<td colspan="8" align="Center">
<span class="Content"><b>No matching records were found.</b></span>
</td>
</tr>
</table>
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="" HeaderStyle-CssClass="griditem_heading" ItemStyle-CssClass="griditem_1"
HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" SortExpression=""
Visible="True" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Label for="rad1_1" ID="rad1_1" runat="server" Visible="false"> </asp:Label>
<asp:RadioButton ID="rdoClinicId" runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Clinic Name" HeaderStyle-CssClass="griditem_heading"
ItemStyle-CssClass="griditem_1" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle"
SortExpression="clinic_name" Visible="True" ItemStyle-VerticalAlign="Middle" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Label ID="lbl_Grd_Clinic_Name" runat="Server" Text="" ToolTip="" Width="" Height=""
Style="" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Open" HeaderStyle-CssClass="griditem_heading"
ItemStyle-CssClass="griditem_1" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle"
SortExpression="Open" Visible="True" ItemStyle-VerticalAlign="Middle"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Label ID="lbl_Grd_Open" runat="Server" Text="" ToolTip="" Width="" Height="" Style="" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>