Validation happening for 2 datagrids

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Stephen,

This sounds strange in a normal validation process are you not changing
anything in your datagrid2 when you are editing on 1. So it maybe validate,
however there will be no error. So what is so special.

Cor
 
Basically all the validation (generated by .net e.g. required field
validators etc) is client side and it fires on the on-click event of a
button. My problem is that when I click add in datagrid1 then if the
textboxes in datagrid2 aren't filled in the validation kicks in even though I
don't want it too as Im not actually trying to add anything to datagrid2.

Im looking for some way to stop the validation for datagrid2 happening when
I click the add button in datagrid1 and vice-a-versa.

I've never came across this problem before because I never really have two
different submit buttons on the same page.
 
Back
Top