S
Saradhi
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
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