tags:

views:

30

answers:

2

Hello all

I have a treeView , and i want to know if some node can be seen by a user. I mean that no node abave it not needed to be expanded that that node will be seen .

Any idea how i can check this with out rotating to upper lever for that ? Checked msdn but couldn't see property responsible for that ....

Some Example will really help....

Thanks a lot for help.

+2  A: 

I assume if you want to know if a treenodes parent is expanded

TreeNode.Parent.IsExpanded

JDMX
And i need to rotate till level zero . Is that the only way ?
Night Walker
If you know the node you want to check, then this will tell you if its parent is expanded. You should not have to go to level 0 to do that.
JDMX
Yes you are right , but still i need to check level zero because there the parent will not be expanded .
Night Walker
A: 

I think this is what you need:

Node myNode;
if(myNode.Parent.Expanded)
  //Visible
Carra