使用 textbox_keypress 过滤绑定源或绑定列表
我使用 winforms 和 c#。
如何过滤绑定源或绑定列表。带有文本框文本? 我的意思是,当我在文本框中输入时,我的网格正在使用 %Like 方法而不是 (=,equal) 方法进行过滤。
谢谢。
I use winforms and c#.
How can I filter Binding source or binding list. with a textbox text ?
I meam while I am typing in a textbox my grid is filtering with a %Like method not (=,equal)method.
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用委托来解决这个问题。一些代码如下所示
I use delegate for this problem. Some code like bellow
您可能想要使用 CollectionViewSource 类来启用过滤。
请参见此处
You may want to use CollectionViewSource class to enable filtering.
See here