在网格视图中高亮显示搜索到的文本时需要帮助 [英] need help in highlighting searched text in grid view

查看:77
本文介绍了在网格视图中高亮显示搜索到的文本时需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在从数据库中搜索字符串并将其显示在gridview中.我想突出显示网格中搜索到的字符串.请告诉我该怎么做...

Hi all

i am searching string from database and displaying it in gridview.i want to highlight that searched string in the grid..please tell me how to do that...

推荐答案

根据您的网格,我可以告诉您如何操作.

在旧的Winforms时代,我会在网格的行添加事件上更改行或单元格背景.您使用的是哪种网格.
Depending on your grid I can tell you how to do it.

In old winforms days I would change the row or cell background on the row add event of the grid. What kind of grid are you using.


这篇关于在网格视图中高亮显示搜索到的文本时需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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