469,946 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

TreeView Node Renaming Performance Problem.

Hi All,
Here I am facing a performance problem with the TreeView Node renaming.

I am displaying a hierarchy Data in a treeview in my Windows C# Application.
My tree view represents an hierarchical view of Parent Nodes and projects where in a projectnode can be added to any ParentNode and hence we may have a project node added to 100 Parent nodes.

In this one, I have an operation of Renaming a Project Node. So whenever I am doing the operation of renaimg a particular Project Node, I need to rename all the instances of the particular node in the whole Tree View.

So each Tree Node is attached a tag ProjectNode
For this one, I am having a collection of ProjectNode and whenever a project node is renamed, I am calling the rename function of ProjectNode which in turn renames the name of the ProjectNode and then throws an event which will be captured again in the Tree View.
In this Event handler, I am searching the whole Tree view by parsing each and every node and renaming it if it matches wiht the ProjectNode.

This operation is taking a long time and causing an performance issue.

Is there any other alternative Dersign pattern aavilable to solve my problem?

-SARADHI
Jul 21 '05 #1
0 1511

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Anil | last post: by
3 posts views Thread by Saradhi | last post: by
3 posts views Thread by Shawn | last post: by
8 posts views Thread by Matt MacDonald | last post: by
reply views Thread by JJ | last post: by
2 posts views Thread by =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.