Thanks for the reply.
Do the controls to be validated have to be within the same
<EditItemTemplate>? If yes, then this would mean that they would have to
belong to the same gridview column, correct? So, I can't really have a
comparevalidator to span columns, can I?
Thanks,
Bogdan
"Teemu Keiski" <jo****@aspalliance.comwrote in message
news:ut**************@TK2MSFTNGP03.phx.gbl...
You'd need to have controls such as TextBoxes in the <EditItemTemplate>
with explicit ID as you need to assign the IDs to the validator so that it
knows which controls to compare/validate. And the validator must also
exist in the template, otherwise it cannot "see" the validated controls as
they'd be in different naming container. But that way it basically is
possible.
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"bogdan" <bo****@comany.comwrote in message
news:uj**************@TK2MSFTNGP06.phx.gbl...
>Is it possible to have a CompareValidator to compare values from two
cells in a gridview row? I'd like to do that while in edit mode.
Thanks,
Bogdan