AS
Arun Srinivasan
Syncfusion Team
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