Solved

Causes validation from gridview control

Posted on 2007-11-27
2
2,607 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cookies analysis tools 2 29
Get String split 5 33
As soon as i click a button on the form,it mnimises. 11 20
Close word object 13 21
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now