在gridview中提供搜索功能 [英] providing a search feature within a gridview

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

问题描述

请为我提供gridview中搜索功能的代码.

说一个具有 5个字段(即
)的gridview

字段为1. staff_no
2. first_name
3. last_name
4.社会保障号
5.家乡


当您保持在搜索文本框中输入时,gridview应该通过上述任何字段进行增量搜索,同时取出不需要的记录.
.

此后,用户将从gridview中选择必需的记录,这将倾向于以表格的形式填充文本框.

谢谢

Kindly provide me with the codes for a search feature within a gridview.

Say a gridview which has 5 fields i.e


the fields are 1. staff_no
2. first_name
3. last_name
4. social security no
5. home town


The gridview should do an incremental search by any of the above fields while taking out the unwanted record as you keep entering in the search text box.

Thereafter the user will select the requisite record from the gridview which will in tend fill the text boxes in the form.

Thanks

推荐答案

简单的先生,

第1季度 在您继续在搜索文本框中输入内容时,取出不需要的记录

答案1 要获取所需的记录,您只需使用Like keyword of your database即可获取所需的结果.

Q2从gridview中选择必要的记录,这将趋向于填充表格中的文本框.

答案2 在datagridview中检查交易是否相关,并相应地填写数据.
its easy sir,

Q1 taking out the unwanted record as you keep entering in the search text box

Ans 1 to get the required records you have to just use Like keyword of your database to get the desired result.

Q2 select the requisite record from the gridview which will in tend fill the text boxes in the form.

Ans 2 In datagridview check for the related if of the transaction and fill your data accordingly.


这篇关于在gridview中提供搜索功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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