Can you dynamically change an attribute for an EditItemTemplate?

G

Guest

Hello,
Does anyone know if you can programattically change the attribute of an
EditItemTemplate's html element? My template contains a textbox that I would
like to set to read-only when the user is updating. But switch it back to
not read-only when the user is adding a new record.

I've seen one MSDN article where you can create classes that implemement the
ITemplate and then insert them into the grids column collection at run time.
Is this the best solution?

Thanks,
Phillip
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top