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