Can I use a Conditional format rule to change the background of a whole row in a grid?
(For example, I have a 'grade' column in my grid. If the grade value is less than 60, I want the background color of the whole row to be red).
If not, is there some other way to achieve this?
Hello Hagit,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Sorry for my delayed reply.
I still couldn't achieve what I wanted.
I need to change the background of rows in the grid (XamGrid / XamDataGrid) according to a property of type enum that is displayed in the grid as an image.
I took the sample you have attached in your last reply, and added the following:
In MainWindow.xaml.cs
In MainWindow.xaml
<ig:TemplateColumn Key="Validity">
<ig:TemplateColumn.ItemTemplate>
<DataTemplate>
<Image Width="16" Height="16" Source="{Binding Path=Validity, Converter={StaticResource validityToImageConverter} }" />
</DataTemplate>
</ig:TemplateColumn.ItemTemplate>
…
</ig:TemplateColumn>
Now, I want to set yellow background of rows that have the Validity property set to Warning. How do I do this?