I 've inserted a TreeView Control into my WebPart class. Everything works properly as long as i don't try tu use TreeNodeExpanded event.When i do that after expanding root the whole control collaps and returns to original state - where all leafs are hidden. Some sample code below.I 've created this control as a class library because later on ideploy my web part to sharepoint services. In general what i want to get is formating text of each node after expanding the tree so that all elements where in proper "column".
in advance thank you for your help
_treeView.TreeNodeExpanded += new TreeNodeEventHandler(someAction);
public void someAction(object sender, EventArgs args)
this.l1.Text = "dasda";