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
45
Change row color based on field value
posted

Hi,

Please help me change row color based on one value. Currently I am using this:

igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=DataItem.{propertyName}}" Value="true">
<Setter Property="Background" Value="#red"/>
</DataTrigger>
</Style.Triggers>
</Style>
</igDP:XamDataGrid.Resources>

It doesnt work. Please help me with the correct implementation