我需要在DataGridTemplateColumn中爲DataGrid創建一個新屬性,其中此屬性將爲布爾值,並將通過以下規則指示是否將評估該列;當前行的值與前一行不同時,單元格應該爲粗體。使用以前的值評估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和規則。
有沒有人有任何想法或鏈接,可以告訴我我可以做到這一點?