Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different validation on two datagrids

Status
Not open for further replies.

LauraCairns

Programmer
Jul 26, 2004
173
0
0
GB
I have two datagrids on a page and each of them allow the user to add rows. On each datagrid I have validation (required field, reg expressions etc) and my problem is that I only want the validation to work on the datagrid which I click add in. At the moment if I click add in one datagrid and haven;t filled out anything on the other datagrid then the validation comes up. Does any one know what I can do to combat this?
 
Don't use the validation controls. Either use client-side JavaScript or roll your own server-side validation function. I usually do both just in case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top