如何在树视图中添加最后一个节点?C#添加最后一个节点时出错可能是什么原因? [英] How to add the last node in a tree view?C#Error while adding last node what could be the reason?

查看:95
本文介绍了如何在树视图中添加最后一个节点?C#添加最后一个节点时出错可能是什么原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

面对一个问题,我有一个树视图。

里面我有3个子节点。



这里的问题是,数据正常,但最后一个节点的expand \collapse符号没有到来(显示红色标记)

也无法点击并折叠(显示错误'未定义数据')。

如果我将一个新的子节点添加到我的上一个节点,那么它将显示符号,但新添加的子节点将记录工作(同样的问题)。

所以最后一些问题节点。



这里我将最后一个节点添加为子节点而不是将其添加为内容(如文本,标签..)。



最后一个节点有什么问题?

如何添加最后一个节点?



任意解决方案?

解决方案

如何在树视图中添加节点?



创建的内容已创建一个新的表格并添加了一个新的树状图。





之后在我进入树视图属性@ node并点击右边的集合。



它打开树节点编辑器,然后从那里我添加了节点和子节点。





我尝试更改所有属性以获得相同的错误但没有运气。



你能提供更多关于你是怎么做的信息吗?如果在代码中发布代码。


确定,



您可以发布代码吗?那么也许我们可以提供协助。


我遇到了类似的问题,



我做的是我进入表格设计师并删除我的子节点的代码,然后我添加了新鲜的子节点。



它解决了我的问题,希望它能为你工作!。

Am facing one issue, I have one tree view.
Inside that i have 3 child nodes.

problem here is, data coming properly but the expansion\collapse symbol of last node is not coming (showing red into mark)
also am unable to click and collapse that (showing error 'undefined data').
If i add a new child node to my last node then it will show the symbol but the newly added child node will note work (same problem).
So some problems with the last node.

Here am adding last node as child node instead of that can i add it as content(like text,label..).

What is the problem with last node?
How to add this last node?

Any solution?

解决方案

How do you add nodes to the tree view?

What I done is created a new form and added a new tree view.


after that I went to the tree view properties @ node and clicked on the right at collection.

it opens the tree Node Editor and from there I added the nodes and child nodes.


I tried changing all the properties to get the same error that you got but no luck.

can you give more information about how you did it? if in maybe code post the code.


ok,

Could you post the code? then maybe we can assist.


I had a problem similar to that,

What I did is I went into the form designer and remove the code for my child nodes, and afterwards I added the child nodes from fresh.

it solved my issue hopefully it will work for you!.


这篇关于如何在树视图中添加最后一个节点?C#添加最后一个节点时出错可能是什么原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆