Click to See Complete Forum and Search --> : Updating multiple treeviews


Sam Barham
July 29th, 2004, 05:17 PM
I'm just new to .NET, so I just plain don't know how most stuff is done.

My current problem is that I have multiple identical forms open at once. Each form has a TreeView control. These TreeViews are all supposed to display the same data, although each seperate form might have different area od the tree expanded. My problem is that if I add a node somewhere in the TreeView on one form, how do I make the TreeViews on all the other forms updated themselves with the new node, without disturbing which areas are expanded on each form.

If its useful, the data the TreeViews are displaying is stored seperately, so if I just have to rebuild the whole of each TreeView off the data I can, but of course that would mean remembering which parts of the view are expanded, mhich just sounds nasty.

Thanks
Sam