Home All Groups Group Topic Archive Search About
Author
5 Apr 2005 4:15 PM
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

Author
6 Apr 2005 9:39 AM
MasterGaurav
Why not show the tree using Tree Control (in IEWebcontrols).
Clicking each node in tree should allow editing of the node.

HTH

CHeers,
Gaurav Vaish
http://mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------