0

I have a Repeater inside the TemplateField for a GridView. GridView is bound to datasource1 and the repeater to datasource2. How can i access datasource1 from the ItemTemplate of repeater in data binding syntax (<%# %>) of repeater itemtemplate?

suhair
  • 10,895
  • 11
  • 52
  • 63

1 Answers1

1

See this question. That question was relevant to Repeaters but you get the idea. The GridView exposes the RowDataBound event which you can handle in the same way.

Of course, I don't believe there is a way to access it via the declarative Databinding syntax.

Community
  • 1
  • 1
Cerebrus
  • 25,615
  • 8
  • 56
  • 70