Is it possible to dynamically change font color on a cell by cell basis on the same row?
-
I have a datagrid being populated from a datatable which contains several computed columns. If the computed cell value is >= to the previous day's value, I want the font color to stay the same. If the value is < than the previous day's value, I want to change the font for that particular cell red (not the entire row). Is that possible? In the WinForm datagridview it wasn't a big deal. I'm new to WPF and the datagrid, but am I missing something simple here to accomplish the same task? Thanks for any pointers or help.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
-
I have a datagrid being populated from a datatable which contains several computed columns. If the computed cell value is >= to the previous day's value, I want the font color to stay the same. If the value is < than the previous day's value, I want to change the font for that particular cell red (not the entire row). Is that possible? In the WinForm datagridview it wasn't a big deal. I'm new to WPF and the datagrid, but am I missing something simple here to accomplish the same task? Thanks for any pointers or help.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
You should easily be able to accomplish this via DataTriggers.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
You should easily be able to accomplish this via DataTriggers.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.