Hi,
I've a treeview which I use to show a departments employees. When a new
employee is added to a department, I clear all the nodes from the tree, and
build it again. Suppose after adding the new employee, the user is clicking
on a particular node in the Tree, I want to save the data, rebuid the tree to
refresh the changes, and then set the SelectedNode as the new node that the
user clicked.
All this happens correctly, it goes to AFterSelect event and there I can see
the correct node is selected, then it fires AfterSelect event once more and
this time some node gets selected randomly.
I'm setting the SelectedNode to nothing before Clearing the nodes and
rebuilding the tree.
If anyone has encountered a similar problem and found a solution, please
help me.
Thanks,
Debi