Making customValidator for a checkbox column in a gridview

  • Thread starter Thread starter Andy B.
  • Start date Start date
A

Andy B.

I have the following gridView:

<asp:GridView ID="NewsList" ...>
<TemplateField>
<ItemTemplate>
<asp:CheckBox ID="SelectedCheckBox" .../>
</ItemTemplate>
</TemplateField>
<Colums>
.....
</Columns>
</asp:GridView>

I want to make a customValidator to check and see if at least 1 instance of
the SelectedCheckBox is checked. If it is then the page validates. Otherwise
it is invalid. How do you do this?
 
Back
Top