G Guest Jan 24, 2006 #1 I added a CustomValidator in Gridview edit mode, how to set the cusomvalidator to invalid or valid when check the update
I added a CustomValidator in Gridview edit mode, how to set the cusomvalidator to invalid or valid when check the update
S S. Justin Gengo [MCP] Jan 24, 2006 #2 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
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