Change color of CheckboxColumn if checked

Posted by user896692 on Stack Overflow See other posts from Stack Overflow or by user896692
Published on 2012-03-18T17:52:27Z Indexed on 2012/03/18 17:57 UTC
Read the original article Hit count: 538

Filed under:
|
|
|
|

Searched a lot about this problem but never found a answer, that solved it.

I´ve got the following CheckboxColumn in a WPF datagrid:

<DataGridCheckBoxColumn Header="Erledigt" Binding="{Binding Path=erledigt}"  />

The variable erledigt contains 0 or 1. Now I want, that if the Checkbox is checked, the cellbackground is green. Hopelessly searched for a checked property. How can I manage this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf