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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





7681 Oct 6,2003 03:04 PM UTC Oct 6,2003 04:56 PM UTC WinForms 1
Tags: Tools
Sean Greer
Asked On October 6, 2003 03:04 PM UTC

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 04:56 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon