【问题标题】:c# Ultratree how to selected child node different parent node [closed]c# Ultratree如何选择不同父节点的子节点[关闭]
【发布时间】:2017-03-14 11:37:17
【问题描述】:

我使用c#语言和Visual Studio制作windows应用程序

我需要选择多个不同的父节点

我需要这样做

  • 父A
    • 节点 1
    • 节点 2
  • 父 B
    • 节点 1
    • 节点 2
  • 父C
    • 节点 1
    • 节点 2

【问题讨论】:

  • 如果您询问基础架构树视图控件,您可以通过设置它的选择相关属性来做到这一点
  • 您需要展示您到目前为止编写的代码,并就您遇到的特定问题提出问题。这不是代码编写服务。
  • @NiranjanKala 我设置 selectiontype = 扩展,但 Ultratree 只能选择相同的父级

标签: c# infragistics ultratree


【解决方案1】:

试试这些设置:

        // Allow the end user to select multiple nodes.
        this.ultraTreeView1.Override.SelectionType = Infragistics.Win.UltraWinTree.SelectType.Extended;
        // Allow the end user to select nodes in different levels of the tree.
        this.ultraTreeView1.SelectionBehavior = Infragistics.Win.UltraWinTree.SelectionBehavior.ExtendedAcrossCollections;

希望对您有所帮助..

【讨论】:

  • 感谢您的帮助。这段代码解决了我的问题,非常感谢。
猜你喜欢
  • 2011-03-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多