GridView: how to hide/show controls based on a value in another cell?

D

dan

Hi,

I have a GridView with five columns. One of the column renders its content
either as a FileUpload or TextBox - depending on a value in another cell. I
created an EditItemTemplate for the column and placed both controls in it.
The controls' Visible property is initially set to false for both of them.
Based on a value of another field I'd like to be able to set Visible
property to true for one of the controls.
Could someone please let me know the best way of doing this?

Thanks,
Dan
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top