Treeview remove property problem
- by curiosity
Hi,
i added a SampleNode to the treeview.
if i remove any node from SampleNode,
like,
TreeNode[] nodes = this.SampleNode.Nodes.Find(node.Text, true);
if (nodes.Length > 0)
{
int j = nodes[0].Index;
if (nodes.Length > 0)
this.SampleNode.Nodes[j].Remove();
}
it is deleted in treeview but not in SampleNode.
Why does this happens?
what is the solution?