Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
How to refresh DataTrigger in XamDataGrid?
posted

I am highlighting a grid row based on some Flag property. Something like this:

<Style TargetType="{x:Type igDP:DataRecordPresenter}">
 <DataTrigger Binding="{Binding
    RelativeSource={RelativeSource Self}, Path=Record.DataItem.Flag}"
    Value="True">
        <Setter Property="FontWeight" Value="Bold" />
 </DataTrigger>

Works fine, but if I change the Flag programmatically, the record does not get refreshed.

The underlying object implements INotifyPropertyChanged, and if I show that Flag in a column, the cell value does get changed, but DataTrigger does not work.

Does anybody know a way to refresh the record, make DataTrigger to re-evaluate the condition?

Thanks,
Michael