是否可以在多个列上使用 BindingSource.find ?

发布于 2024-07-08 17:06:13 字数 226 浏览 9 评论 0原文

是否可以在多个列上使用 BindingSource.find ?

我有一个树视图和一个组合框。 组合框提供用于构建树视图的 ID。 当我在树视图中选择一个节点时,我想显示组合框中 ID 的详细信息/子信息以及树节点中的标签/ID 值。

做这个的最好方式是什么? 我试图使用绑定到绑定源的控件。 我想更改绑定源的位置,但我需要在绑定源中搜索组合中的值以及我刚刚选择的树节点??????

Is it possible to use BindingSource.find on multple columns?

I have a treeview and a combobox. The combobox provides the ID that is used to build the treeview. When I select a node in the tree view I want to display the details/child information for the ID from the combobox and the tag/ID value from the tree Node.

What is the best way to do this? I was trying to use controls bound to a binding source. I want to change the position of the binding source, but I need to search the binding source for the value from the combo as well as the tree node I just selected?????

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

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

发布评论

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

评论(1

那小子欠揍 2024-07-15 17:06:13

我不知道这是否是完成我想要完成的任务的最佳方法,但 BindingSource.Filter 方法非常适合我的场景。

I don't know if it is the best way to do what I was trying to accomplish, but BindingSource.Filter method works great for my scenario.

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