Hi, i am converting our app datagrids to RadGridViews and we need to change the colour of the row based on the previous row data. We used a multibinding ad passed "PreviousData" as the relative source:
<Style TargetType="DataGridRow">
<Style.Triggers>
<DataTrigger Value="True" >
<DataTrigger.Binding >
<MultiBinding Converter="{StaticResource EvaluatePreviousRow}">
<Binding RelativeSource="{RelativeSource PreviousData}"/>
<Binding Path="."/>
</MultiBinding>
</DataTrigger.Binding>
<Setter Property="Background" Value="Gray"/>
</DataTrigger>
</Style.Triggers>
<Setter Property="Background" Value="Red"/>
</Style>
Now i managed to convert everything so that the EvaluatePreviousRow converter is called when a row is being drawn by the RadGridView but now
<Binding RelativeSource="{RelativeSource PreviousData}"/>
Always sends null to the converter. Is there any way to pass the previous collection item data in a similar fashion?