HI NG!
I have a problem which is very confusing for me.
In my app it is possible that the tree view will be cleared and
created completely new.
To provide nice usability i would like to expand all nodes, which were
expanded before the new creation of the tree view.
So I save the first child node of all expanded nodes in a arraylist
and use a clone of this array list after the new creation of the tree
view.
Now my question:
1.) The EnsureVisible function works fine, if i call the EnsureVisible
function like this:
Nodes[0].Nodes[node.Parent.Index].Nodes[node.Index].EnsureVisible();
2.) but it does not work if I obtain my nodes from the arraylist and
call the function directly on this node. Like this:
node.EnsureVisible();
Why is it needed to call the function as described in point 1 ? I
recognized the same behavior with the Expand and ExpandAll functions.
Do you have an hint for a better solution of my problem?
Thanks and regards
Marcel