how to nest CheckBoxList in DataSet ( asp.net vb )

K

krzysiek

yellow everybody,

This what i did is below, however i'm getting error when Checkboxlist shows
relation' columns.


<asp:DataList 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>

</asp:DataList>

An error that i get is :DataBinder.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
 

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,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top