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.
Syncfusion Feedback

TreeControlAdv.Nodes.Remove

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Essential Suite: 1.6.0.5 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

CONFIRMATION

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.

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

;