How to retain an expanded state after reloading TreeView?
That’s going to be difficult. Other parent nodes might have been expanded. Capturing the entire state of the tree is tough. The need to refresh the entire tree is odd. You can just refresh the node contents of the existing tree. You could use the TreeNode.Tag property to retain some kind of reference to the source data. Related threads: http://forums.microsoft.com/MSDN/ShowPost.aspx?
Related Questions
- With the ongoing state budget cuts, is there a possibility of the AACC and WC moving and not being reconstructed and expanded?
- How can the state’s or district’s Core Curriculum be adapted and expanded for students who will be alternately assessed?
- How to retain an expanded state after reloading TreeView?