I'm wondering if there's a way to access a parent properties in databinding, of if I am going to have to re-write some objects to pass down data.
Cars Generic of Car
Car Properties: Id, Makes
Makes Generic of Make
Make Properties: Id, Name, Models
Models Generic of Model
Model Properties: Id, Name
repeater (datasource = cars)
---repeater (datasource = Makes)
..........<%# Eval("Name") %>
------repeater (datasource = Models)
..................<%# Eval("Name") %> <%# Eval("??? Make.Id ???") %>
So in the nested repeaters, I somehow need to access the parent's Id. In this example the Make's Id.
Is this possible?
Or do I need to add Property to child objects that refer to the parents?
View Complete Post