Repeater in Repeater

前端 未结 7 734
离开以前
离开以前 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 04:55

    If I need to do that, I usually do it using the ItemDataBound event of the parent repeater to bind the child repeater. If e is your EventArgs parameter, you'll have access to the child repeater via e.Item.FindControl(), and access to the data via e.Item.DataItem.

提交回复
热议问题