如何在 Nattable 中添加列名称为 header 的红星?

How to add red star with name of column header in Nattable?

我正在尝试用红色过滤后更新列名 star.But 我无法做到 it.Please 帮我解决这个问题。

header 列中的样式与其他任何地方的样式相同。您通常会在 header 列单元格上设置一个标签,该标签的样式应该不同,然后为该标签注册一个自定义画家。如果你想显示一个带有黑色文字的红色星星,我想你需要用 ImagePainter 装饰一个 TextPainter 作为红色星星,或者使用 RichTextPainter 作为默认值TextPainter 不支持不同的字体样式。