在您键入时搜索 [英] Search as you type
问题描述
在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屋!