可编辑的TreeView

问题描述:

我需要具有以下特点一个TreeView:

I need a treeview with the following features:

  1. 来拖放节点树视图内的能力
  2. 有在顶部按钮,其允许移动项目上下
  3. 编辑节点文本

有没有执行这一可用? 如果不是全部,是否有特征1的实施方案可用?

Is there any implementation of this available? If not all, Is there an implementation of feature 1 available?

正常的树状可以强制来支持这一点。

The normal treeview can be forced to support this.

拖动ñ下降节点: http://www.$c$cproject.com/KB/tree/TreeViewDragDrop.aspx

您可以通过设置LabelEdit属性设置为true编辑LABES,然后调用特定的树节点的.BeginEdit()方法。

You can edit labes by setting the "LabelEdit" property to true and then invoke the .BeginEdit() method of a specific tree node.

treeView.LabelEdit = true;
treeView.Nodes[0].BeginEdit(); //activates editing of node 0

当LabelEdit已启用,您还可以通过单击节点文本编辑节点的文本。

When LabelEdit is enabled, you can also edit node texts by clicking the node text.