470,594 Members | 1,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

DataGrid and footer control validation


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
Nov 18 '05 #1
2 1856
When you are in edit mode hide the footer of the datagrid
"Sebastian" <po*****@mail.com> wrote in message news:<eK**************@TK2MSFTNGP09.phx.gbl>...
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

Nov 18 '05 #2
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"mike" <kn*********@yahoo.com> wrote in message
news:6f**************************@posting.google.c om...
When you are in edit mode hide the footer of the datagrid
"Sebastian" <po*****@mail.com> wrote in message

news:<eK**************@TK2MSFTNGP09.phx.gbl>...
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

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jim Heavey | last post: by
4 posts views Thread by Jim Heavey | last post: by
2 posts views Thread by Jim Heavey | last post: by
5 posts views Thread by Chamindu R Munasinghe | last post: by
2 posts views Thread by Sebastian | last post: by
9 posts views Thread by Justin | last post: by
9 posts views Thread by tshad | last post: by
5 posts views Thread by Chris | last post: by
1 post views Thread by Adam Knight | last post: by
1 post views Thread by .Net Sports | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.