Solved

Causes validation from gridview control

Posted on 2007-11-27
2
2,612 Views
Last Modified: 2013-11-26
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?
0
Comment
Question by:Mike_Stevens
2 Comments
 
LVL 2

Accepted Solution

by:
DJFuller earned 500 total points
ID: 20358722
Yes,

Edit collumns on the gridview and click on the edit, insert, update field at the bottom of the list.

In the properties > behavior section is the "Causes validation" where you can set it to false.

0
 
LVL 7

Expert Comment

by:Chandan_Gowda
ID: 20359057
If you dont have validators inside the gridview then set causes validation as false for the update button which is inside the gridview
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question