Accessing parent data in nested repeater, in the HeaderTemplate

I have found the answer actually:

Use:

<HeaderTemplate>
    <%# ((RepeaterItem)Container.Parent.Parent).DataItem %>
</HeaderTemplate>

Leave a Comment