如何在文本框更改事件中过滤wpf中的datagrid? [英] How to filter datagrid in wpf on textbox change event?

查看:83
本文介绍了如何在文本框更改事件中过滤wpf中的datagrid?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在文本框更改事件中过滤wpf中的datagrid?我想根据文本框中的值过滤datagrid?但问题是,在绑定数据源之后,只应在datagrid上进行过滤,而不是过滤数据源并再次绑定它。

How to filter datagrid in wpf on textbox change event? I would like to filter the datagrid depending on the value from the textbox? But the thing is that, filtering should be done only on datagrid after binding datasource and not filtering the datasource and binding it again..

推荐答案

也许这会有所帮助:< a href =http://msdn.microsoft.com/en-us/library/ff407126.aspx> http://msdn.microsoft.com/en-us/library/ff407126.aspx [< a href =http://msdn.microsoft.com/en-us/library/ff407126.aspxtarget =_ blanktitle =新窗口> ^ ]
Maybe this will help: http://msdn.microsoft.com/en-us/library/ff407126.aspx[^]


这篇关于如何在文本框更改事件中过滤wpf中的datagrid?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆