[C#] DataGridView:突出显示单元格中的文本 [英] [C#]DataGridView: highlight text in a cell

查看:84
本文介绍了[C#] DataGridView:突出显示单元格中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我在只读模式下绑定DataGridView。

I've a bound DataGridView in read only mode.

我需要突出显示文本结果搜索,例如:

i need to highlight the text result of a search , for ex.:

search =" raoul"

search = "raoul"

某些单元格的内容是:"blabla raoul blabla"或"raoul blablabla"

content of some cells is: "blabla raoul blabla" or "raoul blablabla"

我需要"raoul"突出显示。

i need "raoul" highlighted.

这可能吗?

非常感谢提前。

RaouL。

推荐答案

您可以突出显示包含文本的整个单元格,不确定所选文本。
You can highlight the whole cell containing the text, not sure about the selected text.


这篇关于[C#] DataGridView:突出显示单元格中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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