I have a repeater inside a repeater. Where the parent repeater is bound to a Datatble
which has a column with a Datatable
in it.
I would like to bind the child repeater to the datatable column in the parent repeater's datarow
Is this possible? i was thinking i could do this directly in the aspx
file like:
DataSource="<%# DataBinder.Eval(Container.DataItem, "Products")%>"
but it doesn't seem to work.
Best Answer
In the parent repeater, attach a method to the OnItemDataBound event and in the method, find the nested repeater and data bind it.
Example (.aspx):
Example (.cs):