ASP.NET: Controlling a Repeater inside a Gridview Row

I want the Repeater element to be inside a Gridview row. So, how can I assign a DataSource to a Repeater so that it is used by the particular row data data of the GridView?

I've tried this: DataSource = '<% # Eval (Container, "DataItem.InnerVal")

but that won't work.

0


a source to share


2 answers


You will need to handle the event GridView.RowDataBound

in code. This will allow you to dynamically create Repeater

and bind it to the data for the row you are in.



+3


a source


follow these steps: http://www.codeproject.com/KB/database/repeater_in_gridview.aspx Hope this helps you.



-1


a source







All Articles