I thought I had my previous thread resolved over nesting a third-level repeater, but it seems now that the third level that displays the files only shows the first child, not the rest. The second-level repeater displays all children correctly. Does anyone know why this is the case?
**Update - I have checked the dataset, and all five records are in the files table, and the relationships have to be correct or else the first record wouldn't even show...Code:<asp:Repeater ID="rptAll" runat="server"> <ItemTemplate> <p>Group: <%#DirectCast(Container.dataitem, Data.DataRowView)("groupid")%></p> <asp:Repeater ID="rptChildren" runat="server" DataSource='<%# DirectCast(Container.dataitem, Data.DataRowView).CreateChildView("Groups_FileCategories") %>'> <ItemTemplate> <p>Category: <%#DirectCast(Container.dataitem, Data.DataRowView)("CategoryID")%> <%#DirectCast(Container.DataItem, Data.DataRowView)("GroupID")%></p> <asp:Repeater ID="rptFiles" runat="server" DataSource='<%# DirectCast(Container.Dataitem, Data.DataRowView).CreateChildView("FileCategories_Files") %>'> <ItemTemplate> <p>File: <%#DirectCast(Container.DataItem, Data.DataRowView)("FileName")%></p> </ItemTemplate> </asp:Repeater> </ItemTemplate> </asp:Repeater> </ItemTemplate> </asp:Repeater>




Reply With Quote