Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with nested repeater

Status
Not open for further replies.

James1981

Programmer
Nov 2, 2002
76
US
Hi, I am trying to implement a nested repeater as described in an article from c# corner:
However, when I run the code I get an error: Object reference not set to an instance of an object.

this error occurs when the "detail" repeater is trying to databind itself to the relationship created in the onpageload event. The error is raised on the following line:

Code:
((Repeater) e.Item.FindControl("tblSelections")).DataSource = ((DataRowView) e.Item.DataItem).CreateChildView("myRelation");

Has anyone experienced this problem before?

Cheers
James.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top