Hello all,
I'm relatively new to the WPF DataGrid, but I really like it so far. I'm having a problem though with maintaining row background color. I want to set the row background color based on a column value in the row. I've found where I can set the row color with the PropertyChanged event, but it seems I can only set it when the user enters or exits a row. I've also noticed that if the user sorts the grid (by clicking the column header), all row coloring reverts back to the original values.
My question is two fold:
1. Is there a better way to initialize the row color based on column values when the grid is loaded rather than when the user enters or exists the row?
2. How can I maintain the row color when the user sorts the contents in the grid?
Thanks in advance,
Steve