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
945
refresh row highlighting
posted

Was able to produce a grid with row highlighting based on bound data value.

However when this data changes, and the bounded data has had PropertyChanged fired, data updates but row highlighting remains and stays until you interact with the control (scroll down)

code used to highlight

<Style TargetType="{x:Type igDp:DataRecordCellArea}">

   <Style.Triggers>

    <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path= Record.DataItem.AnalogueYear}" Value="True" >

     <Setter Property="Background">

       <Setter.Value>

         <LinearGradientBrush Opacity ="0.5" StartPoint="0.5,0" EndPoint="0.5,1">

            <GradientStop Color="Snow" Offset="0.0" />

            <GradientStop Color="MediumOrchid" Offset="0.9" />

            <GradientStop Color="Snow" Offset="1.0" />

          </LinearGradientBrush>

        </Setter.Value>

      </Setter>

   </DataTrigger>

</Style>

Any ideas on how to force a refresh.