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

DIfferent Validation on two 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?
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
check out the CausesValidation property on the
System.Web.UI.WebControls.Button class, you can set the property at runtime
so in theory you could disable the validation in the datagrid that you
didn't click add-in.

HTH

Ollie Riches

"Stephen" <St*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
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?

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.