Highlighting rows of SelectedItem in DataGrid?

Your trigger is trying to bind to the IsSelected property of the underlying object for each DataGridRow, so if that object doesn't have that property then you won't get any results. Setting the SelectedItem on the DataGrid won't affect your trigger as it is written above. EDIT: I put together a quick sample to test.

As expected, you're trying to bind to the wrong thing (it also looks like you have the wrong target as well if the goal is to highlight a specific cell in red). If you replace the entire DataGrid. RowStyle block with this, it will work as expected.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions