1
votes

I am working with WPF DataGrid. I want to be able to detect which cell (row and index) my mouse is currently hovered over then set focus/highlight that cell. I was able to find this tutorial on how to find row and index but it seems really complicated. Is there another way to do this?

1

1 Answers

-2
votes

Override DataGridCell template and then redesign it. It's relatively easy, you only need to add new trigger for IsMouseOver.