Results 1 to 3 of 3

Thread: [RESOLVED] Not all child rows showing in repeater

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Resolved [RESOLVED] Not all child rows showing in repeater

    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?
    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>
    **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...
    Last edited by gigemboy; Jun 25th, 2008 at 11:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width