在gridview中搜索数据 [英] Search Data In gridview

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

问题描述

Hii我想搜索gridview中存在的数据.搜索完成后,应突出显示搜索到的数据.请尽快以Vb.net语法提供代码.

Hii I want to search data that are present inside the gridview.And when the search completed the searched data should be highlighted.Please provide me the code in Vb.net syntax as soon as possible.

推荐答案

此处为提示.
遍历单元格,将值与
匹配
Here is the hint.
Loop through cells, match the value with
If strCellValue Like "*" & strFind & "*" Then
'highlight your cell here
Else
'normal cell style here
End If


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

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