Nested Datagrid Inside a Repeater

H

hooterbite

In the code behnd I build the dataset including the relations, which is

working fine. I know it is working fine becuase I tested it by looping
through the datatable then looping through the child table, and am able
to display all the values from the child table.

The code I use inside the datagrid is
<asp:DataGrid id="Datagrid1" runat="server" datasource='<%#
Container.DataItem.Row.GetChildRows("EntitiesDirectors") %>'


where EntitiesDirectors is the name of the datarelation.


Is this not the right syntax for a datagrid?


When I bind I get the following message


System.Web.HttpException: A field or property with the name 'FullName'
was not found on
the selected datasource


where FullName is the first field in the child table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top