1个回答
展开全部
protected void tree1_SelectedNodeChanged(object sender, TreeNodeEventArgs e)
{
TreeView tree= sender as TreeView ;
if(tree != null && tree.SelectedNode != null)
{
TreeNode parent = tree.SelectedNode;
foreach(TreeNode son in parent.ChildNodes)
{
//通过TreeNodeSelectAction控制节点状态
son..SelectAction=TreeNodeSelectAction.None;
}
}
}
{
TreeView tree= sender as TreeView ;
if(tree != null && tree.SelectedNode != null)
{
TreeNode parent = tree.SelectedNode;
foreach(TreeNode son in parent.ChildNodes)
{
//通过TreeNodeSelectAction控制节点状态
son..SelectAction=TreeNodeSelectAction.None;
}
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询