Hi -
I have an Ultra Tree with three node levels. Total Number of nodes in the tree will be around 10,000. The problem with this tree is when the user selects a particular node, a new win form will be opened. After closing the winform I am refresing the whole tree as the win form changes some of the properties of the nodes thereby causing the nodes to rearrange. So after the win form is closed when I refresh the tree, the user wants the tree nodes to be in the same pattern before opening win form like node 1 expanded and node 2 collapsed etc. All I see in the tree node is Expand All and Collapse All which doesn't entirely solve the purpose. Considering the performance issue which is the best way to do this.
Any suggestions will have a great impact on my application.
Thanks in advance.
You were not very specific about why the nodes get rearranged, but you should use the Sort or SortComparer properties to sort the nodes after the collections are populated, and base your sort criteria on something that will not change when they get rearranged.
Hi Brian-
Thanks for the reply. The win form that is opening change the parent node of one of the child node therby rearranging the ultra win tree.
According to my understanding Sort or Sort Comparer cannot applied in this scenario. What I need is the app should some how remember the tree and node settings before opening the win form and display in the same format after closing the win form. Simply I need to preserve the state of the tree.
-Thanks.
Swetha.