搜索gridview数据 [英] search gridview data
本文介绍了搜索gridview数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.....
我正在使用gridview我的问题是,如果我在搜索按钮中输入一些名称,我只会得到该特定行,因此如何为搜索按钮编写代码
id fname lname loc
1001 mahi xyz xyz
xyx xyx xyx xyx
fname:--------搜索(按钮),如果输入名称并按搜索按钮,它将仅显示该行,仅此为qstn,请使用我的代码解决任何问题
预先感谢
解决方案
您最好的选择是搜索数据源,并将网格绑定到匹配项,而不是尝试遍历网格.
hi guys........
am using gridview my question is if i enter some name in search button i will get that specific row only so how to write code for search button
id fname lname loc
1001 mahi xyz xyz
xyx xyx xyx xyx
fname:-------- search(button) if enter name and press search button it will display only that row only this is qstn please can any solve my problem with code
thanks in advance
解决方案
Your best bet is to search your data source, and bind the grid to the matches, instead of trying to iterate over the grid.
这篇关于搜索gridview数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文