DataList inside a datalist.

N

Nevyn Twyll

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
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top