Hi,
I was wondering if anyone knew a way of changing the text colour of an entire row based on the value in a cell. For example say I had a cell named flagged and I wanted to change the entire row's text colour to red if the value in the cell equalled "True".
Appreciate any help offered..
Hello Ash,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hi Stefan,
Sorry for the late reply. In the end up I went down a slightly different route. I used a conditional format rule seen below to check and assign the value. This obviously only applys the formatting on load but it was suitable for my needs.
<ig:XamGrid.ConditionalFormattingSettings>
<ig:ConditionalFormattingSettings AllowConditionalFormatting="True"/>
</ig:XamGrid.ConditionalFormattingSettings>
<ig:TextColumn Key="Flagged" HeaderText="Flagged" HorizontalContentAlignment="Center" Visibility="Collapsed" >
<ig:TextColumn.ConditionalFormatCollection>
<ig:EqualToConditionalFormatRule Value="True" StyleScope="Row">
<ig:EqualToConditionalFormatRule.StyleToApply>
<Style TargetType="ig:CellControl">
<Setter Property="Foreground" Value="Red"/>
</Style>
</ig:EqualToConditionalFormatRule.StyleToApply>
</ig:EqualToConditionalFormatRule>
</ig:TextColumn.ConditionalFormatCollection>
</ig:TextColumn>
Thanks for your help with this matter.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.