PC Review


Reply
Thread Tools Rate Thread

DIfferent Validation on two datagrids

 
 
=?Utf-8?B?U3RlcGhlbg==?=
Guest
Posts: n/a
 
      10th Feb 2005
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?
 
Reply With Quote
 
 
 
 
Ollie Riches
Guest
Posts: n/a
 
      10th Feb 2005
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?



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrids Uncle X Microsoft C# .NET 0 8th Feb 2006 03:51 PM
Validation happening for 2 datagrids =?Utf-8?B?U3RlcGhlbg==?= Microsoft Dot NET 3 10th Feb 2005 12:35 PM
VB.NET Datagrids simchajoy2000@yahoo.com Microsoft VB .NET 2 16th Jul 2004 08:24 AM
Datagrids =?Utf-8?B?amV6MTIzNDU2?= Microsoft C# .NET 1 14th Jul 2004 11:49 AM
Re: dataGrids Majid Qazi Microsoft VB .NET 0 7th Sep 2003 07:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 PM.