DIfferent Validation on two 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?
 
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
 

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

Back
Top