CustomValidator in Gridview edit mode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I added a CustomValidator in Gridview edit mode, how to set the
cusomvalidator to invalid or valid when check the update
 
Ken,

It should set itself automatically. But if I'm not following exactly what
you want to do then you access the custom validator by using FindControl:

Dim MyControl As CustomValidator =
CType(GridView1.Rows.Item(0).FindControl("MyCustomValidator"),
CustomValidator)

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

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

Back
Top