[WPF] Format datagrid row foreground depends on data
- by ktutnik
Hi everyone,
Im new in wpf, i though it was an easy task.
i searched in the internet but not lucky to found any help regarding this problem.
<Style TargetType="{x:Type DataGridRow}">
<Setter Property="Foreground" Value="{Binding Converter=conditionToColorConverter}"/>
</Style>
the problem is how to pass the row data to the value.. the converter will return RED or BLACK color when specified properties of the row data match some category.
or maybe there is an easy way to do that?
Thanks in advance
Kin