Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Validator in Datagrid's ItemTemplate

Reply
Thread Tools

Validator in Datagrid's ItemTemplate

 
 
valeria007@gmail.com
Guest
Posts: n/a
 
      11-07-2005
Hello!
Is it possible to have a validator in a datagrid's ItemTemplate part of
the column and NOT in the EditTemplatePart?
I know it works in Edit Mode, but this is a datagrid with a checkbox
column. User can select multiple checkboxes and there's 1 submit button
that will process allr ecords that have been checked. I don't know how
to make the validator to work without putting the gird in edit mode,
and that can only be done one row at the time.
Please help!
Thank you
-V.

 
Reply With Quote
 
 
 
 
Greg Burns
Guest
Posts: n/a
 
      11-07-2005
Not sure I understand. But I would make your checkboxes be images of a
checkbox (or an unchecked checkbox) when in the Item template. That way
they cannot be checked unless in Edit mode.

What is it you want to validate?

PS: here is nice control for dealing with checkboxes.

http://www.metabuilders.com/Tools/Ro...torColumn.aspx

Greg

<> wrote in message
news: oups.com...
> Hello!
> Is it possible to have a validator in a datagrid's ItemTemplate part of
> the column and NOT in the EditTemplatePart?
> I know it works in Edit Mode, but this is a datagrid with a checkbox
> column. User can select multiple checkboxes and there's 1 submit button
> that will process allr ecords that have been checked. I don't know how
> to make the validator to work without putting the gird in edit mode,
> and that can only be done one row at the time.
> Please help!
> Thank you
> -V.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts Validator - creditCard validator smrimell@gmail.com Java 4 02-13-2007 08:32 PM
can code inside a Repeater's ItemTemplate modify controls in the ItemTemplate? Bennett Haselton ASP .Net 1 09-24-2004 01:59 AM
binding data to a radiobuttonlist within an ItemTemplate ani ASP .Net 0 10-30-2003 09:11 PM
ItemTemplate using IDE?? SStory ASP .Net 2 08-04-2003 11:25 PM
ItemTemplate help Jeremy Chapman ASP .Net 2 07-29-2003 05:19 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57