WPF DataGrid row backgound
-
Hi I want to set the backgound of the DataGridRow based on the item which is displayed by that row. I use the DataGrid to diplay the people in the phone book. I want to set the background of the row based on the country in which that person lives. Does anyone knows how can I do that? Any advice will be appreciated. Thanks in advance, Uros
-
Hi I want to set the backgound of the DataGridRow based on the item which is displayed by that row. I use the DataGrid to diplay the people in the phone book. I want to set the background of the row based on the country in which that person lives. Does anyone knows how can I do that? Any advice will be appreciated. Thanks in advance, Uros
-
You could change the background color using a trigger as shown here.
Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
Honestly. It's the honest ones you want to watch out for...