Making customValidator for a checkbox column in a gridview

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top