TreeView 中单击节点展开子节点事件
点击父节点(而不是点击前面的“+”号)展开它的子节点呢
我用的vs2005
"+ " 影响我的树显示效果
------解决方案--------------------用TreeNode.SelectAction = TreeNodeSelectAction.Expand
------解决方案--------------------正确应该是:
NavigateUrl= " ";
然后设置SelectAction=TreeNodeSelectAction.Explan;
------解决方案--------------------TreeNode node = new TreeNode(folder.FolderName, folderValue);
node.ImageUrl = FOLDER;
int totalFolder = (folder.Rgt - folder.Lft - 1) / 2;
node.ToolTip = folder.Description;
if (totalFolder > 0)//含有子文件夹
{
node.PopulateOnDemand = true;
}
else
{
node.PopulateOnDemand = false;
}
node.SelectAction = TreeNodeSelectAction.Expand;
treeView.Nodes.Add(node);
------解决方案--------------------关注一下
------解决方案--------------------关注一下