Hi,
I'm using the MouseEnterElement and MouseLeaveElement events of the UltraWinGrid to show a custom popup screen. The cell I'm interested in has an image in it. if I enter the element a larger preview of the image is shown.
I finally got this to work but the MouseEnterElement and MouseLeaveElement are firing 2 times, once when hover over the picture in the cell and once when enter the rest of the empty cell on the right.
Is there a way to prevent the MouseEnterElement and MouseLeaveElement events from reaction on the image inside the cell?
Kind Regards
Ibbe.
Hi Ibbe,
You mean like the Element property on the event args?
Mike,
Thank u for the reply but the suggested solution will not work for me.
Is there a way to pinpoint the different element within the cell that is causing the MouseEnterElement and MouseLeaveElement events?
Ibbe
It sounds to me like the event is firing because you are entering a different element within the cell.
What you probably need to do is store the last cell that was entered and then if it gets entered again because the mouse moved into a different element within the same cell, just ignore it.