组合框搜索包括关键字 [英] Combobox Search Including Keyword

查看:97
本文介绍了组合框搜索包括关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

我是VB.NET程序员,目前正在开发一个项目,我必须从组合框中搜索。

我正在从数据库中恢复数据(MS ACCESS)并在表单加载事件中将其加载到组合框中



我在组合框中为搜索设置了以下属性:

1. AutoCompleteMode TO建议

2. AutoCompleteSource TO ListItems

3.排序=真



我想搜索包括关键字

例如:组合框中的数据是:

Raj Kumar

Rohit Kamble

Kumar Shanti



假设当我在组合框中键入Kum时它应该显示2个条目,即。 Raj Kumar和Kumar Shanti

它应该显示搜索结果,包括关键字

请帮助我谢谢你

解决方案

< blockquote>你必须使用AJAX。


Hello Friends
I am VB.NET Programmer and currently working on a project where i have to search from combobox.
I am retreving the data from database(MS ACCESS) and loading it in combobox at form load event

I have set the following properties in combobox for search :
1. AutoCompleteMode TO Suggest
2. AutoCompleteSource TO ListItems
3. Sorted = True

i want to search including the keyword
eg: Data in combobox are :
Raj Kumar
Rohit Kamble
Kumar Shanti

Suppose when i type Kum in combobox it should show 2 entries ie. Raj Kumar and Kumar Shanti
It should show me search results including the keyword
Kindly Help me Thank You

解决方案

You must use AJAX for this thing.


这篇关于组合框搜索包括关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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