Hello, please tell me how to select a single cell with the color when you hover over it, by this link Changing the color of the column for the selected cell Datagrid WPF, I found how the full column is highlighted.
, but you need to do it like this
Thank you in advance!!!.
1 answer
In the designer, right-click on the DataGrid and in the context menu select "Edit Additional Templates" - "Edit CellStyle" - "Edit a Copy", select where to save the style. Now add another trigger to the style:
<Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="Red"/> </Trigger> Do not forget that the triggers work in the order of their definition, so choose the right place for it.
- Thanks, it turned out !!! - Eugene
|
