Using HeaderTemplates

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

How do I reference objects (e.g. labels) within the HeaderTemplate of a
TemplateColumn?

Regards
John.
 
You could reference them in ItemCreated or ItemDataBound event handler.Check
when item type is ListItemType.Header and you can use FindControl to locate
controls.
 

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

Back
Top