在您键入时搜索 [英] Search as you type

查看:59
本文介绍了在您键入时搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#中键入(在数据库中)时是否有任何已知的搜索实现。为了论证,请说

,因为我在第一个名字输入我的

组合框中的名字数量减少。

-

LA Jones

解决方案

" Dave" < Da ** @ discussion.microsoft.com写信息

新闻:E2 ************************** ******** @ microsof t.com ...


当您在c#中键入(在数据库中)时,是否有任何已知的搜索实现。

为了论证,请说

,因为我输入第一个名称,我的

组合框中的名字数减少了。



您需要自己实现。这并不困难


SELECT * FROM People WHERE FirstName LIKE abc%


Michael


我需要将此代码附加到哪个事件?

-

LA Jones

" Michael C"写道:


" Dave" < Da ** @ discussion.microsoft.com写信息

新闻:E2 ************************** ******** @ microsof t.com ...


当您在c#中键入(在数据库中)时,是否有任何已知的搜索实现。

为了论证,请说

,因为我输入第一个名称,我的

组合框中的名字数减少了。



您需要自己实现。这并不困难


SELECT * FROM People WHERE FirstName LIKE abc%


Michael


" Dave和QUOT; < Da ** @ discussion.microsoft.com写信息

新闻:9D ************************** ******** @ microsof t.com ...


我需要将此代码附加到哪个事件?



文本框的更改事件。你从哪里获得名单

来自哪里?我假设一个数据库可能不正确。


Michael


Is there any known implementation of search as you type (in a db) in c#. Say
for argument sake, as I type in the 1st name the number of names in my
combobox decrease.
--
L. A. Jones

解决方案

"Dave" <Da**@discussions.microsoft.comwrote in message
news:E2**********************************@microsof t.com...

Is there any known implementation of search as you type (in a db) in c#.
Say
for argument sake, as I type in the 1st name the number of names in my
combobox decrease.

You need to implement this yourself. It''s not difficult

SELECT * FROM People WHERE FirstName LIKE abc%

Michael


What event I would need to attach this code to?
--
L. A. Jones
"Michael C" wrote:

"Dave" <Da**@discussions.microsoft.comwrote in message
news:E2**********************************@microsof t.com...

Is there any known implementation of search as you type (in a db) in c#.
Say
for argument sake, as I type in the 1st name the number of names in my
combobox decrease.


You need to implement this yourself. It''s not difficult

SELECT * FROM People WHERE FirstName LIKE abc%

Michael


"Dave" <Da**@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...

What event I would need to attach this code to?

The change event for the textbox. Where are you getting the list of names
from? I was assuming a database which might not be correct.

Michael


这篇关于在您键入时搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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