Click here to Skip to main content
16,018,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts,

Can you please tell me how to put a custom validator in a RadiobuttonList of a grid view .below i have given the code


Thanks
Aditya

XML
<asp:GridView ID="grvCourseFeedback" runat="server" AutoGenerateColumns="False">
                                                   <Columns>
                                                 <asp:BoundField DataField="Question" HeaderText="Question"  />

                                                 </Columns>
                                                      <Columns>


                                                 <asp:TemplateField HeaderText="Rating">
                                                 <ItemTemplate>
                                                 <asp:RadioButtonList ID="rblRating1" runat="server" AppendDataBoundItems="False" RepeatDirection="Horizontal">
                                                 <asp:ListItem Text="V.Poor" Value="1"></asp:ListItem>
                                                 <asp:ListItem Text="Poor" Value="2"></asp:ListItem>
                                                 <asp:ListItem Text="Satisfactory" Value="3"></asp:ListItem>
                                                 <asp:ListItem Text="Good" Value="4"></asp:ListItem>
                                                 <asp:ListItem Text="V.Good" Value="5"></asp:ListItem>
                                                 </asp:RadioButtonList></ItemTemplate></asp:TemplateField>
                                                          <asp:TemplateField HeaderText="Comments">
                                                              <ItemTemplate>
                                                                  <asp:TextBox ID="txtcomments1" runat="server" TextMode="MultiLine"></asp:TextBox>
                                                              </ItemTemplate>
                                                          </asp:TemplateField>
                                                 </Columns>
                                                </asp:GridView>
Posted
Comments
[no name] 30-Jan-13 22:13pm    
What do you want to validate ??

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