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

Strategy for Client Validation of Dates etc when doing Edit/Update on a datagrid.

P: n/a
I am using a DataGrid for Edit and Update. However, Im wondering what the
best strategy for client side validation would be as I dont think the
validators can reference the TextBoxes which come up in the Table Rendered
by the DataGrid when Editing/Updating or maybe I'm wrong ?????

I know I can validate inside the update event, but i wondered if anyone has
tried to do this client side ?
Cheers - Mr Newbie.

Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
if you want more control of the controls in edit mode, look into making an
EditItemTemplate and adding the validation controls in there (as per your
requirements).

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am using a DataGrid for Edit and Update. However, Im wondering what
the best strategy for client side validation would be as I dont think
the validators can reference the TextBoxes which come up in the Table
Rendered by the DataGrid when Editing/Updating or maybe I'm wrong
?????

I know I can validate inside the update event, but i wondered if
anyone has tried to do this client side ?

Cheers - Mr Newbie.

Nov 19 '05 #2

P: n/a
OK, are textbox'es on templates coumns available as class variables ?

Thanx
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
if you want more control of the controls in edit mode, look into making an
EditItemTemplate and adding the validation controls in there (as per your
requirements).
-Brock
DevelopMentor
http://staff.develop.com/ballen
I am using a DataGrid for Edit and Update. However, Im wondering what
the best strategy for client side validation would be as I dont think
the validators can reference the TextBoxes which come up in the Table
Rendered by the DataGrid when Editing/Updating or maybe I'm wrong
?????

I know I can validate inside the update event, but i wondered if
anyone has tried to do this client side ?

Cheers - Mr Newbie.


Nov 19 '05 #3

P: n/a
Not inside a termplate, becuase the template tends to get created several
times, once per row from the datasource when databinding. They are there,
but you have to access them via the row using the FindControl API (at least
that's the typical way).
-Brock
DevelopMentor
http://staff.develop.com/ballen

OK, are textbox'es on templates coumns available as class variables ?

Thanx

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
if you want more control of the controls in edit mode, look into
making an
EditItemTemplate and adding the validation controls in there (as per
your
requirements).
-Brock
DevelopMentor
http://staff.develop.com/ballen
I am using a DataGrid for Edit and Update. However, Im wondering
what the best strategy for client side validation would be as I dont
think the validators can reference the TextBoxes which come up in
the Table Rendered by the DataGrid when Editing/Updating or maybe
I'm wrong ?????

I know I can validate inside the update event, but i wondered if
anyone has tried to do this client side ?

Cheers - Mr Newbie.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.