Disable or grey out a node in the TreeNode Editor

前端 未结 4 884
遥遥无期
遥遥无期 2021-01-03 21:12

How do I disable a specific node so the user can not select it. Hiding it for the user is also valid.

I tried the Visible property but that hides the entire tree (al

4条回答
  •  醉梦人生
    2021-01-03 21:26

    set disabled node by yourNode.SelectAction = TreeNodeSelectAction.None

    I think you need also disable expandable this node yourNode.PopulateOnDemand = false

提交回复
热议问题