Validation happening for 2 datagrids

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?
 
C

Cor Ligthert

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top