templatecolumn text, tooltip problem

B

bluewind44

Hello, now I'm struggling with the tootip problem.

I've googled and found some sample code and tried it.

It works, but I have a problem with it.

I want to get the text of the templatecolumn,

but e.Item.Column.Text didn't work.

I know I can do it by using 'Lable', but I just wanna know

if there is the other way to do it.


Thanks

Seung-joon, Lee
 
E

Eliyahu Goldin

If I understand you correctly, you are asking how to get the content of a
template column.

When you make your item template, you should assign an id to every control
in the template that you will want to access. Then you can access it in the
code with

e.Item.Column.FindControl (id);

Once you have a reference to the control, you can use it's properties, like
Text.

Eliyahu
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top