C#多色文本在datagridview的单个单元格中 [英] C# multi-coloured text in a single cell of a datagridview
本文介绍了C#多色文本在datagridview的单个单元格中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以更改datagridview单元格中出现的子字符串的颜色?
Is it possible to change the colour of a sub string present in a datagridview cell?
推荐答案
CellPainting 事件以自定义单元格的绘制方式。
You need to use the CellPainting event to customize how the cell is drawn.
这篇关于C#多色文本在datagridview的单个单元格中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文