By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,309 Members | 2,053 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,309 IT Pros & Developers. It's quick & easy.

DataGrid and footer control validation

P: n/a

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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.