.net Treeview控件 [英] .net Treeview control
本文介绍了.net Treeview控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#代码动态(用户端)排列树视图节点
how to arrange treeview node dynamically(user end) using C# code
推荐答案
我认为您想允许用户将树视图项向上移动或向下或在两个级别之间.正确吗?
如果是这样,您要么需要创建一组按钮来做到这一点(向右,向左,向上和向下按钮),然后根据当前选择启用/禁用.或者您需要实现拖放.拖放可能就是您所想的.关于实现树视图的拖放,有很多信息.在代码项目上还具有自动启用拖放功能的控件.
I think you''re wanting to allow the user to move treeview items up or down or between levels. Is that correct?
If so, you either need to create a set of buttons to do that (a right, left, up, and down button) and enable/disable based on the current selection. Or you need to implement drag and drop. Drag and drop is probably what you''re thinking of. There is a lot of information out there on implementing drag and drop for treeviews. There are also controls on Code Project that have drag and drop automatically enabled.
这篇关于.net Treeview控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文