Causes validation from gridview control
Posted on 2007-11-27
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?