我需要在 DataGridTemplateColumn 中为 DataGrid 创建一个新属性,其中该属性将是布尔值,并指示该列是否将通过以下规则进行评估;当当前行的值与上一行不同时,单元格应为粗体。
<DataGridTextColumn Header = "SG"
Binding="{Binding SteelGrade}"
IsEvaluated="True" <!-- indicates that this column will be bold if the current value is different from the previous line value-->
>
</ DataGridTextColumn>
所以我需要创建 IsEvaluated 以及规则。
有人有任何想法或链接可以告诉我如何做到这一点吗?