Reputation: 754
I have form that have some fields with requireFieldValidation
and also Gridview with edit and cancel button
When I try to edit gridview it asks me for fullfill requireFieldValidation first.
I have some idea that I need to change some property to true
to false
in gridview but not exaclty knowing what?
Am I right? Or need some code to restrict this validation on gridview edit?
Upvotes: 0
Views: 269
Reputation: 94645
To ignore the validation rules added via ASP.NET Validation Control for the Button/LinkButton/ImageButton, set value of CausesValidation
property to false
. Also set ValidationGroup property for each control, it allow you to organize validation controls on a page as a set.
Upvotes: 1