views:

210

answers:

1

Hi How to disable color change (to gray) when mouse hover on a row of grid? How to disable color change (to gray) when row is selected by mouse click or keyboard/Enter combination?

I want to keep the originally assigned row color.

Please advice.Thanks AJ

+1  A: 

You will need to specify a new template for the DataGridRow via a style on the the RowStyle property. Use the existing style for DataGridRow found here.

Remove the StoryBoard elements for the "MouseOver", "NormalSelected" and "MouseOverSelected" VisualStates also remove the DoubleAnimation for "BackgroundRectangle" from the "UnfocusedSelected" VisualState.

AnthonyWJones