Infragistics UltraGrid 单元格每个字的不同颜色

Infragistics UltraGrid cell different color per word

是否可以更改 Ultragrid Cell 文本值中单词的颜色? 例如:7m + 5m + 7m2 其中 7m2 为红色。

我将在我的 windows 应用程序中实现它。

您需要设置Style of the column to FormattedText / FormattedTextEditor. Then you need to set the value of the Cell to some formatted text。在您的情况下,您可以将值设置为如下所示:

var cellValue = "7m + 5m + <span style=\"color:Red;\">7m<span style=\"vertical - align:Super;\">2</span></span>";