I have one grid-view inside grid-view using one RadioButtonList
and outside grid-view using one asp.net Button
when user click that button all radio button list should be selected, then only that Button
event should be submitted.
Below is my grid-view RadioButtonList
.
<asp:TemplateField HeaderText="Add Score">
<ItemTemplate>
<asp:RadioButtonList ID="RadioButtonList1" runat="server" CssClass="cssrbt">
<asp:ListItem Text="Correct" Value="1"></asp:ListItem>
<asp:ListItem Text="Wrong" Value="2"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateField>
Below is my button which using out side of gridview.
<asp:Button ID="btn_Submit" runat="server" class="btn btn-md btn-danger" Text="Submit" OnClick="btn_Submit_Click" ValidationGroup="viva" />
My issue is without selection inserting all grid-view data and that I want to validate.