treeview展开问题
public   void   GetNode(TreeNodeCollection   tc) 
 { 
 	string   ss= " "; 
 	foreach(TreeNode   TNode   in   tc   ) 
 	{ 
 	         TNode.Expanded   =   true; 
 	         if   (TNode.NodeData.ToString().Substring(2,TNode.NodeData.ToString().Length-2)==curCustomTypeID.ToString()) 
 	         { 
 	                  trvType.SelectedNodeIndex   =TNode.GetNodeIndex(); 
                                  } 
       	      GetNode(TNode.Nodes); 
 	      break; 
 	} 
 } 
 我想通过遍历找到TNode.NodeData=curCustomTypeID,treeview需要展开,但是这样写是全部都展开了,想请教怎么能不用全部展开,只需要对TNode.NodeData=curCustomTypeID   的时候展开对应的节点!   谢谢!!!
------解决方案--------------------先要确定  curCustomTypeID  所在节点.然后再去展开他.
------解决方案--------------------this.treeView1.Nodes[i].Expand();
------解决方案--------------------看看这个帖子是不是跟你的类似啊。 
 http://community.csdn.net/Expert/topic/5671/5671300.xml?temp=.8829462