DataList inside a datalist.

Discussion in 'ASP .Net Web Controls' started by Nevyn Twyll, Apr 5, 2005.

  1. Nevyn Twyll

    Nevyn Twyll Guest

    I have a series of data, each of which has children.
    I want to be able to display them hierarchically, and edit them.
    I put 2 datalists on my webform, got them both working.
    Then, I put the child datalist in the ItemTemplate of the parent, and in the
    Item_Created of the parent, bound the item_command of the child.
    That works too - EXCEPT, when I click my child control's edit button, how do
    I get:
    1) the child datalist control so that I can set the EditItemIndex?
    2) Get the ID of the parent record so I can know which set of items I'm
    working with?
    3) Is the Item_Command too late to access the e.Item.DataItem? Becuase when
    I do, it comes back NULL.

    Thanks in advance!

    - Nevyn
    Nevyn Twyll, Apr 5, 2005
    #1
    1. Advertising

  2. Nevyn Twyll

    MasterGaurav Guest

    MasterGaurav, Apr 6, 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. Dave
    Replies:
    0
    Views:
    780
  2. =?Utf-8?B?dmJNZW50YWw=?=

    CheckboxList inside a usercontrol inside of a datalist.

    =?Utf-8?B?dmJNZW50YWw=?=, Oct 30, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    564
    =?Utf-8?B?dmJNZW50YWw=?=
    Oct 30, 2004
  3. Steve
    Replies:
    0
    Views:
    3,041
    Steve
    Feb 1, 2005
  4. Dave
    Replies:
    0
    Views:
    419
  5. Roman
    Replies:
    2
    Views:
    246
    Roman
    Jan 4, 2005
Loading...

Share This Page