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" <(E-Mail Removed)> wrote in message
news:B2453D17-0C0F-4F29-88C0-(E-Mail Removed)...
> 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?
|