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
Hello ,
Thank you for contacting.
The code is looking correct, try setting color as Red (through intelisense).And also not sure if the binding is causing the issue.
I would recommend you to refer to this post provided more information with a sample application to achieve it from Xaml and code behind.
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/40708/change-the-row-color-based-on-a-field-value-for-dynamically-creating-xamdatagrid
https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/72969/change-row-and-font-color-based-on-cell-value
Please let me know if you need further assistance
Sincerely,Divya JainAssociate Software Developer