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
250
DataRecordCellArea problem
posted

Hi everyone,

 

I' ve the seguent style for DataRecordCellArea

     <Style TargetType="{x:Type igDP:DataRecordCellArea}">
        <Setter Property="Background" Value="White"/>
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},
                                           Path=Content.DataContext.Cells[2].Value, Converter={StaticResource t}}"
                                           Value="3">
                                   <!--Path=Record.DataItem.[2]}" Value="3">-->
                <Setter Property="Background" Value="Red" />
            </DataTrigger>
        </Style.Triggers>
    </Style>

 

My XamDataGrid DataSorce is a DataView.

The rowColor is Based on a cell of the DataSource.

When the record is in error while editing the grid, I put the value to "3" and I would to update background row color to signal there is an error.

This happen in a row only when I insert a new row, it seems to happen that the Binding is solved only when the entire collection change and not when a single column value change.

 

Have you any answer for me?

 

Thanks,

Andrea