Restrict GridView Row Edit To Numbers

B

Ben

Hi,

I have a GridView bound to sql that i chose to generate an Edit button
for each row.

When I click edit it allows to put text+numbers... i want to restrict
to a numeric range.

I think i need to use TemplateFields for this.. so i converted the
desired bound column to a template field and now i can go to its
EditItemTemplate. But in there i'm not sure how to do it... there's
no numeric up/down to replace the text box with... (i don't have
ajax).


is there an easy way to do this? i've tried searching but not much
luck... i used to do it in ASP using javascript called upon
onkeydown. I've tried adding a RangeValidator/compareValidator, but
their bind settings are grayed out...


Thanks for any info or article u can point me to!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top