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

Discussion in 'ASP .Net' started by krzysiek, Oct 18, 2004.

  1. krzysiek

    krzysiek Guest

    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>
    <tr>
    <td
    >

    <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
     
    krzysiek, Oct 18, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad
    Replies:
    1
    Views:
    441
    Natty Gur
    Dec 18, 2003
  2. JD
    Replies:
    5
    Views:
    11,846
    NetArchitect
    Aug 8, 2007
  3. Patrick.O.Ige
    Replies:
    5
    Views:
    19,297
    Patrick.O.Ige
    Jun 19, 2005
  4. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    Nest Web Projects

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Jul 19, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    424
    Brock Allen
    Jul 19, 2005
  5. PJ6

    relative sizing does not nest?

    PJ6, Aug 15, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    356
Loading...

Share This Page