Jan 9, 2013 at 6:38 PM
Edited Jan 9, 2013 at 6:39 PM
I have a window with a datagrid on it, two of the columns are DataGridComboBoxColumns. The underlying data row has an int field where, if the value is 0 it is false and 1 is true. The window is properly showing and changing the values.
My problem is that I would like to have "True" values have a LightGreen background and "False" values have a LightPink background.
Here is the fragment of xaml:
<Setter Property="Background" Value="LightGreen"/>
<Trigger Property="Text" Value="False">
<Setter Property="Background" Value="LightPink"/>
The comboboxes in the window always have the default(white) background regardless of the text containing True or False.
Anyone have any ideas what the proper syntax for the DataGridComboBoxColumn.ElementStyle is to achieve my goal?