如何在 Powerbuilder Tree Datawindow 中显示不可展开的节点

发布于 2024-09-05 02:33:53 字数 235 浏览 3 评论 0原文

我在 powerbuilder 中使用树数据窗口。这代表了树和表的混合。

我的问题是:树没有明显地区分可扩展节点和不可扩展节点。如果节点不可展开,则该节点前面的图标仍然是一个加号,如果我单击该加号,树会在当前节点下方显示一个空节点。

如何获得标准行为(节点不可展开,节点前面没有图标或减号)?我是否需要更改数据集,或者这是我可以设置的树的属性?

另一种方法是使用本机树视图,但这在其他方面不如树数据窗口优雅。

I am using a tree datawindow in powerbuilder. This repesents a mixture of tree and table.

My problem is: the tree doesn't visibly distinguish between expandable und non-expandable nodes. If a node is not expandable, the icon in front of the node is still a plus sign, and if I click on the plus sign, the tree shows an empty node below the current node.

How can get the standard behaviour (node is not expandable, no icon or minus sign in front of the node)? Do I need to change the Data Set or is that a property of the tree that I can set?

The alternative woud be to use a native tree view, but that is less elegant than a tree data window in other ways.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み零 2024-09-12 02:33:53

不幸的是,这是 TreeView 数据窗口的限制。人们期望数据存在于所有定义的级别。没有办法表明一个节点没有子节点。尽管看起来不太优雅,但传统的树视图是获得这种级别的控制的唯一方法。

Unfortunately, this is a limitation of the TreeView Datawindow. There is an expectation that data exists at all defined levels. There is no way to show that a node has no children. As inelegant as it may seem, the traditional treeview is the only way to go to get this level of control.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文