Link to home
Start Free TrialLog in
Avatar of AVARICESOFT
AVARICESOFTFlag for Pakistan

asked on

finding parent node in treeview

Hello,

i want to find the Parent node in TreeView how could i ??

Note:

private void find(string parentNode)
{
  // here i want to find the parentNode where parentNode are given via argument
}
Avatar of magicdlf
magicdlf

Don't you have a Parent property in TreeNode? Why are you using strings here?
TreeNode tn = new TreeNode();
TreeNode pr = tn.Parent;

Why ask ?
Avatar of AVARICESOFT

ASKER

i want to find not create Mr Arabia_vn read the question properly.

magicdlf i want to search the Parent Node of the given Parmeter..  i think u don't have concepts how to traverse.. might be you don't know how to finding via parmetric ..
experts helps me..
ASKER CERTIFIED SOLUTION
Avatar of Arabia_vn
Arabia_vn
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial