By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,361 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,361 IT Pros & Developers. It's quick & easy.

Validation happening for 2 datagrids

P: n/a
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?
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Jul 21 '05 #2

P: n/a
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.

"Cor Ligthert" wrote:
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

Jul 21 '05 #3

P: n/a
Stephen,

Now I can see that you are probably using ASPNET. With the clientside
validators of this is my expirience at least 2 years old.

Probably you have more change on an answer in this newsgroup.

Aspnet
news://msnews.microsoft.com/microsof...amework.aspnet

Web interface:
http://communities2.microsoft.com/co...amework.aspnet

I hope this helps a little bit?

Cor
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.