自动建议自定义控件 [英] Autosuggest custom Control

查看:183
本文介绍了自动建议自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我想为Windows应用程序创建一个像Autosuggest控件一样的自定义控件.当我键入内容时,它应该显示一个具有建议值的建议网格.

例如,如果我想搜索学生"ashish".一旦我在文本框中输入A,它就会在该控件下以网格或类似网格的格式显示其名字,姓氏,地址,其图像和一些其他信息.所有这些信息将来自数据库.

如果我在选定的行上按Enter或双击某行,则应在文本框中设置该值.

任何建议我应该如何进行.

预先感谢您的帮助!
问候
Ashish Mahajan

Hi Experts,

I want to create an custom control just like an Autosuggest control for my windows application. When I type, it should show a grid for the suggestion have the typed value.

for an example if I want to search a student "ashish". As soon as I type A in textbox, it should show its First Name, Last name, Address, its image and some other info into a grid or grid like format beneath that control. All those info will come from Database.

and if i press enter on a selected row or double click on a row it should set that value in textbox.

Any suggestions how should i proceed for this.

Thanks in advance for your help!!!

Regards
Ashish Mahajan

推荐答案

您可以使用ajax自动完成功能进行此操作

供参考:

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx
You can use ajax auto complete for this operation

for ref:

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx


这篇关于自动建议自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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