views:

22

answers:

1

I am trying to highlight the row and column which the mouse is on. Essentially this means to change the background color of all the appropriate cells. Currently I am trying to do this in the MouseMove event. However, this is causing slow performance.

I was suggested to use WPF for better performance, however I do not wish to go that route. What are some ways in which I can improve performance within C#?

A: 

You can use DataGridView.RowEnter Event which occurs only when a new row becomes active. The msdn links shows exactly the same sample you are trying to accomplish.

Giorgi
But this is only for when the mouse is clicked on a new row. I need to track the mouse as it moves.
sbenderli