We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





7681 Oct 6,2003 11:04 AM Oct 6,2003 12:56 PM Windows Forms 1
Tags: Tools
Sean Greer
Asked On October 6, 2003 11:04 AM

Essential Suite: It seems that calling TreeControlAdv.Nodes.Remove(node) used to remove the TreeNodeAdv from the tree. Now I have to call node.Parent.Nodes.Remove(node) in order for the node to be removed. Has the behavior of the tree changed or am I suffering an early "senior moment (at 34)"? Thanks, Sean

Arun Srinivasan [Syncfusion]
Replied On October 6, 2003 12:56 PM

Hi Sean, The difference between the two is that the first case will work only if the node is a parent node and it will not work if it is a child node. //Will work only if the node is a parent node this.treeViewAdv1.Nodes.Remove(this.treeViewAdv1.SelectedNode); //Will work irrespective of whether the node is a parent or a child node this.treeViewAdv1.SelectedNode.Parent.Nodes.Remove(this.treeViewAdv1.SelectedNode); So you may not be having a Senior Moment after all Arun


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.