Hi, I;m trying to make a style that paints the cells background when the cell's Tag property equals to "true". I've created the follwing Style but it doesn't do the job.
<Style x:Key="r" x:Name="r" TargetType="{x:Type igDP:CellValuePresenter}">
<Style.Triggers>
<DataTrigger Binding="{Binding Cell.Tag, RelativeSource={RelativeSource Self}}" Value="true">
<Setter Property="Background" Value="Yellow"/>
</DataTrigger>
</Style.Triggers>
</Style>
Hello,
There is an issue with the style that you have created. With the current binding expression, you are trying to bind to the Cell's Tag property of the CellValuePresenter, however the CVP does not expose such property. For this , you will need not to set the RelativeSource property and let it resolve to the DataRecord, which exposes the Cells collection. From there, you will have access to the cells and their Tags.
Hi, I've tryed this but it doesn't do the job: