Link to home
Start Free TrialLog in
Avatar of Mike_Stevens
Mike_StevensFlag for United States of America

asked on

Causes validation from gridview control

I have a aspx form that i have created in visual studio 2005 that has a text box and a gridview control.   The text box accepts a value that the user enters.   A validation control ensures that the user enters a value before clicking the add button.   The problem that I am having is that when editing a row in the gridview (when has not bearing on anything being entered in the textbox), the update command of the grid view is firing the validation control for the text box.  

For a button on a form you can set the "Causes validation" property to "false" to prevent this from happening.  Can the same be done for the grid?
ASKER CERTIFIED SOLUTION
Avatar of DJFuller
DJFuller
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you dont have validators inside the gridview then set causes validation as false for the update button which is inside the gridview