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.
 
Back
Top