K
krzysiek
yellow everybody,
This what i did is below, however i'm getting error when Checkboxlist shows
relation' columns.
<aspataList id="pytania_list" runat="server" Width="100%" DataSource='<%#
Container.DataItem.row.GetChildRows("relation1_name") %>'>
<ItemStyle
font-size="1pt" font-names="Verdana"></ItemStyle>
<ItemTemplate>
<table
width="100%" >
<tbody>
<tr>
<td>
<b><%# Container.DataItem("col1_name")%>.</b><%#
Container.DataItem("col2_name")%></td>
</tr>
<asp:CheckBoxList id="CheckBoxList1" runat="server"
DataTextField="CH_col1_name" DataSource='<%#
Container.DataItem.GetChildRows("relation2_name") %>'></asp:CheckBoxList>
</td>
</td>
</tr>
</tbody>
</table>
</ItemTemplate>
</aspataList>
An error that i get is ataBinder.Eval: 'System.Data.DataRow' does not
contain a property with the name CH_col1_name.
Anybody has an idea to correct my script ??
Thanks in advance
krzysiek
This what i did is below, however i'm getting error when Checkboxlist shows
relation' columns.
<aspataList id="pytania_list" runat="server" Width="100%" DataSource='<%#
Container.DataItem.row.GetChildRows("relation1_name") %>'>
<ItemStyle
font-size="1pt" font-names="Verdana"></ItemStyle>
<ItemTemplate>
<table
width="100%" >
<tbody>
<tr>
<td>
<b><%# Container.DataItem("col1_name")%>.</b><%#
Container.DataItem("col2_name")%></td>
</tr>
<asp:CheckBoxList id="CheckBoxList1" runat="server"
DataTextField="CH_col1_name" DataSource='<%#
Container.DataItem.GetChildRows("relation2_name") %>'></asp:CheckBoxList>
</td>
</td>
</tr>
</tbody>
</table>
</ItemTemplate>
</aspataList>
An error that i get is ataBinder.Eval: 'System.Data.DataRow' does not
contain a property with the name CH_col1_name.
Anybody has an idea to correct my script ??
Thanks in advance
krzysiek