Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
frnds.how to find the parent of a node in tree view using c#..
.,thnx in Advance...
Posted
Updated 24-May-13 0:44am
v2
Comments
Prasad Khandekar 24-May-13 6:49am    
For windows forms you can perhaps look at this MSDN documentation (http://msdn.microsoft.com/en-us/library/system.windows.forms.treenode.aspx). A TreeNode has a property named "Parent" which returns the reference to parent node.

Regards,
Member 10050327 24-May-13 7:32am    
Thnxx...it works...

1 solution

You can use treeNode.Parent to get parent
 
Share this answer
 
Comments
Mahesh Bailwal 24-May-13 7:13am    
I am not able to get you question? Can you please elaborate it tittle more?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900