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

Validation in a datagrid

P: n/a
I have created a datagrid with several template columns and included
validation controls in the template columns. I also have a button column
with edit-update-cancel.

When the datagrid item is in editmode I can change the values of the data
with textboxes. If I actually enter data in the textboxes that are being
validated by the validation controls it validates the control and shows the
error summary. However if I never go to the controls being validated and
simply click the update button, the controls are not validated. I'm sure
the update button is set to causesvalidation=true. So I'm not sure what is
happening here.

Thanks,

Jason
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
My first reaction is that you have not included RequiredFieldValidators on
this page. All other validators will not report an error when textboxes are
blank.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Jason" <jd***@yahoo.com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
I have created a datagrid with several template columns and included
validation controls in the template columns. I also have a button column
with edit-update-cancel.

When the datagrid item is in editmode I can change the values of the data
with textboxes. If I actually enter data in the textboxes that are being
validated by the validation controls it validates the control and shows the error summary. However if I never go to the controls being validated and
simply click the update button, the controls are not validated. I'm sure
the update button is set to causesvalidation=true. So I'm not sure what is happening here.

Thanks,

Jason

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.