Hi Guys,
I have a custom treeview and additional treenodes properties defined. One of them is StatusType of type enum
Actually the issue im facing is when i click a certain node, i want to go up to its parent and check if the StatusType is equivalent to "CAnalysis" for example, if its "CAnalysis", then extract some information and pull out some content. Otherwise, it should go up another level up till the root to find for the "CAnalysis" Status Type.
I know how to determine the parent of a node by using the "node.parent" property, but i dont know how to write a looping mechanism to search for the parent of a parent for instance.
Any guidance would be greatly appreciated, thank you very much
I have a custom treeview and additional treenodes properties defined. One of them is StatusType of type enum
Actually the issue im facing is when i click a certain node, i want to go up to its parent and check if the StatusType is equivalent to "CAnalysis" for example, if its "CAnalysis", then extract some information and pull out some content. Otherwise, it should go up another level up till the root to find for the "CAnalysis" Status Type.
I know how to determine the parent of a node by using the "node.parent" property, but i dont know how to write a looping mechanism to search for the parent of a parent for instance.
Any guidance would be greatly appreciated, thank you very much