Is there an EASY way to change the background color of a row based on data in that row?
Any help will be appreciated.
The sample available in http://forums.infragistics.com/forums/p/2701/16506.aspx#16506
The example allow you to color singhe styled cell.
I also need to chenge the entire row background color.
The way is to overwrite the style DataRecordCellArea
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BorderBrush" Value="Black" /> <Setter Property="BorderThickness" Value="0.5" /> <Setter Property="CornerRadius" Value="10" /> <Setter Property="Background" Value="White"/> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Content, Converter={StaticResource t}}" Value="3"> <Setter Property="Background" Value="Red" /> </DataTrigger> </Style.Triggers> </Style>
The problem is that the value is bounded to a value of a column. (my dataSource i a DataView) and at first value update the color doesn't change.
Any suggests?
Andrea