将 BindingSource 的过滤结果获取到表/数据集?
我使用连接到 DataGridView
的 BindingSource
来过滤显示的数据。
我想知道将过滤结果获取到 GridView 之外的其他东西的最佳方法是什么?
我问这个问题是因为我想将过滤结果用于一些ComboBoxes
。现在,我通过由 BindingSource 过滤的 DataTable 来填充这些内容。
简而言之,如何获取过滤的 BindingSource 结果作为 DataGridView
以外的其他内容的源?
I'm using a BindingSource
connected to a DataGridView
to filter the data shown.
I would like to know what is the best way to get the filtered result to some other thing than a GridView?
I ask this as I would like to use the filtered result for a few ComboBoxes
. Right now I populate these by the DataTable that gets filtered by the BindingSource.
So in short, how do I get filtered BindingSource result as source for something else than a DataGridView
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上我相信我终于找到了解决方案。
Actually I believe I finally found a solution.