Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:gridview ID="gridview1"  runat="server" AutoGenerateColumns="false">
    <Columns>
        <asp:BoundField DataField="Name"  HeaderText="Name"/>
        <asp:TemplateField HeaderText="Attendance">
        <ItemTemplate >
        <asp:RadioButton ID="rb1" runat="server" Text="P"  GroupName="1" />
        <asp:RadioButton ID="RadioButton1" Text="A" runat="server"  GroupName="1"/>
        <asp:RadioButton ID="RadioButton2" Text="L" runat="server"  GroupName="1"/>
        <asp:RadioButton ID="RadioButton3" Text="H" runat="server" GroupName="1" />
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:gridview>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Submit" />



-------------------------

how i can get the value of the gridview on button click
Posted
Updated 26-Feb-10 16:08pm
v2
Comments
Siddhrs2 7-Jan-12 6:11am    
How can i get RadioButton Checked property is True in a nested GridView in ASP.Net.(Presently, After selecting RadioButton, i get Checked property value as FALSE). I want to get Selected RadioButtons TRUE value.

1 solution

Please follow the link:
RadioButtons inside a GridView control[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900