DataList control in DataListItem

Discussion in 'ASP .Net Web Controls' started by Mirek Endys, Nov 21, 2005.

  1. Mirek Endys

    Mirek Endys Guest

    I need to know, how to bind data into DataList, that is placed in another
    DataList in SelectedItemTemplate.
    I tried to FindControl on ItemCreated event, on PageLoad event, but I cannot
    get this control???

    How to do this???

    Thanks

    Mirek
    Mirek Endys, Nov 21, 2005
    #1
    1. Advertising

  2. Mirek Endys

    Mirek Endys Guest

    I have found that.
    I have Bound parent dataList in code by:

    dlDTDefinitions.DataSource = transfers;
    dlDTDefinitions.DataBind();

    transfers is a List<iDB2SQLTransferItem> and the item (iDB2SQLTransferItem)
    contain DataMappings that is List<DataMappingItem>.

    in aspx i have to bind DataSource of the child DataList:

    <asp:DataList ID="dlDataMapping" runat="server" DataSource='<%#
    DataBinder.Eval(Container.DataItem, "DataMappings") %>'>

    Thats all

    Endys" <> wrote in message
    news:...
    >I need to know, how to bind data into DataList, that is placed in another
    >DataList in SelectedItemTemplate.
    > I tried to FindControl on ItemCreated event, on PageLoad event, but I
    > cannot get this control???
    >
    > How to do this???
    >
    > Thanks
    >
    > Mirek
    >
    >
    Mirek Endys, Nov 21, 2005
    #2
    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. Mathew Quick
    Replies:
    1
    Views:
    303
    John Saunders
    Jun 15, 2004
  2. Nevyn Twyll
    Replies:
    8
    Views:
    1,846
  3. Phil Corrin
    Replies:
    1
    Views:
    2,179
  4. Mirek Endys

    DataList control in DataListItem

    Mirek Endys, Nov 21, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    402
    Mirek Endys
    Nov 21, 2005
  5. Brian Paul

    DataListItem in DataList does not render attributes/Tooltips

    Brian Paul, Jan 15, 2004, in forum: ASP .Net Web Controls
    Replies:
    5
    Views:
    460
    Julience
    Mar 2, 2004
Loading...

Share This Page