Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...