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
980
Conditional formatting in XamGrid
posted

I am trying to apply conditional formatting on a column in a XamGrid. I want the font to be red if the value is negative.

  <Style x:Key="RedFontStyle" TargetType="ig:CellControl">

            <Setter Property="Foreground" Value="DarkRed"/>

        </Style>

 

  <ig:TextColumn.ConditionalFormatCollection>

                <ig:LessThanConditionalFormatRule Value="0.00" StyleToApply="{StaticResource RedFontStyle}" />

            </ig:TextColumn.ConditionalFormatCollection>

 

The LessThanConditionalFormatRule element has "Value cannot be null. Paramenter name key." What am I doing wrong?

 

Thanks!