如何使用linq to sql在wpf中使用textbox.textchanged从列表框中过滤员工ID号? [英] how to filter employee id number from listbox by using textbox.textchanged in wpf using linq to sql?

查看:54
本文介绍了如何使用linq to sql在wpf中使用textbox.textchanged从列表框中过滤员工ID号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我希望使用linq到sql类在wpf中使用textbox.textchanged从列表框中过滤员工id号,这是主要的sql server表,所以请帮帮我。

解决方案

< blockquote>

首先在WPF中你真的不想使用事件。 您应该将文本框的text属性绑定到属性,当属性发生更改时,您将进行过滤。


您到底需要什么帮助? 由于不了解您的数据,因此无法为Linq提供帮助。


 i want filtering employee id numbers which is primary in sql server table from listbox using textbox.textchanged in wpf using linq to sql classes so help me.

解决方案

First off in WPF you really don't want to use events.  You should bind the text property of the textbox to a property and when the property changes you would do your filtering.

What exactly do you need help with?  With no knowledge of your data it is impossible to help with Linq.


这篇关于如何使用linq to sql在wpf中使用textbox.textchanged从列表框中过滤员工ID号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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