DataGrid and footer control validation

S

Sebastian

Hi,

I have datagrid. In its footer there is editbox to add new item.
All is cool. Datagrids 'Delete' button has CausesValidation set to false and
all is great.
But the problem is in 'Process' page button. ('Process' button saves all
data on the page to database).
When I click 'Process' button datagrids footer textbox are being validated
and becouse they are empty error message pops up.
I don't want to set CausesValidation to false for 'Process' button becouse
I have to check date textbox and other stuff.
How do disable datagirds footer validation on 'Process' click?

Sebastian
 
P

Peter Blum

Since DataGrids have a bug that outputs unnecessary javascript from controls
that are hidden by ShowFooter=false or ShowHeader=false, it may be useful to
set the Visible property to false on the validator when setting
ShowFooter=false.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top