I have a datagrid in wpf, my cell is
<DataGridTextColumn.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="Background" Value="{Binding Value, Converter={StaticResource BinaryGridConverter}, ConverterParameter=1 }"/>
</Style>
</DataGridTextColumn.CellStyle>
Everything works fine, the only concern is the converter does not fire on selected cells. My problem will make more sense with the screenshot of my grid,
when i right click on any cell a context menu appear, on allow it will turn the cell green and on disallow it will turn the cell red through the converter.
i have a button, upon click i need to bring the grid back to its original position, through the binding with the dependencyproperty. The issue is when i change the property value the converter does not fire for every cell, it fires for only those cells that are not modified by me.
There is not enough code to be exact, but from your words, it sounds like you set the cell background value manually somewhere in your code, and this way you break the binding.
Double check that you change the cell background through the dependency property using the binding, and not directly.