突出显示DataGridView中的单词? [英] Highlighting a word in a DataGridView?
问题描述
网格或任何可用的用户控件是否有任何调整,建立在DataGridView上,可以突出显示DataGridView单元格内的单个单词?
解决方案是使用您的
列。然后,您将能够突出显示单个单词,并且可以完全控制单元格中的格式。看看这篇文章: DataGridView
中的RichTextBox
In my C# 3.5 Windows Forms application I have a grid (DataGridView). I would like to highlight a word inside some cell, but the grid only allows me to highlight the whole cell.
Is there any tweaks for the grid or any available usercontrol, built on DataGridView, which can highlight a single word inside DataGridView cell?
The solution would be to use a RichTextBox
column in your DataGridView
. Then you would be able to highlight a single word as well as have complete control over the formatting in the cell. Take a look at this article:
RichTextBox column in DataGridView
这篇关于突出显示DataGridView中的单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!