Nested Repeater Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Allan

    #1

    Nested Repeater Controls

    I have extended the example at
    http://support.microsoft.com/default.aspx?scid=kb;EN-
    US;306154 to build a webform page with 3 layers of nested
    Repeaters on (ie. parent, child and grandchild).

    I added a third DataTable to the DataSet, and created a
    second Relation between the second and third DataTables.
    On the aspx page I copied the child Repeater to create the
    grandchild, referencing the second Relation.

    It is throwing an InvalidCastExce ption when executing the
    datasource of the innermost Repeater - <%# ((DataRowView)
    Container.DataI tem).Row.GetChi ldRows
    ("childEvents_g randchildEvents ") %> - why does it not like
    the cast to DataRowView?

    Many thanks in advance.
Working...