HIde/Show Templatecolumn

H

Henk

Hi Guys,

I have a templatecolumn that only has a edititemplate with a textbox, when
not editing it must not be visible. Right now I set the visible property of
the templatecolumn to false, an when I come into my editcommand I show it
with : dgMyGrid.Columns[9].Visible = true;

But this is kind of tricky ofcourse when I change the number of columns! Is
there a better way of doing this? I tried if the templatecolumn had a ID
property so I could try a findcontrol on the grid, but alas.

Henk
 

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
474,135
Messages
2,570,787
Members
47,342
Latest member
KelseyK737

Latest Threads

Top