Repeater in Repeater

前端 未结 7 715
离开以前
离开以前 2020-11-27 04:10

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 li

7条回答
  •  無奈伤痛
    2020-11-27 04:49

    Here is how it's done:

    DataSource='<%# ((System.Data.DataRowView)Container.DataItem)[3] %>'
    

    So if you know the column in the parent table that holds the child table/datasource for the nested repeater you can put this directly in the aspx file.

提交回复
热议问题