This is a migrated thread and some comments may be shown as answers.

MouseOver event not firing in WPF RadGridView

3 Answers 541 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yonatan
Top achievements
Rank 1
Yonatan asked on 05 Jan 2013, 08:05 PM
Hello,

I am using a radGridView in a WPF Application I'm building. I want that if My user will hover his mouse over the radGridView, if it is full with information, it will give me the row index in a messagebox (or something like that). For that, I'm trying to use the

MouseOver MouseMove event. The Problem is, it doesn't fire, no matter what I do. Is it a known bug or am I doing any thing wrong?


Thanks in advance,

Yonatan

3 Answers, 1 is accepted

Sort by
0
Yonatan
Top achievements
Rank 1
answered on 06 Jan 2013, 06:58 AM
Whoops. sorry, I meant the MouseMove Event and not the former. Yonatan.
0
DADean
Top achievements
Rank 1
answered on 07 Aug 2013, 08:12 PM
I'm seeing the same issue as well !

Did anyone find a solution to get the MouseMove event to fire for the WPF GridView control ?
1
Dimitrina
Telerik team
answered on 08 Aug 2013, 01:19 PM
Hi Yonatan,

Indeed, the event will not be raised because GridView handles it internally. You need to subscribe to it like so:

this.radGridView1.AddHandler(GridViewDataControl.MouseMoveEvent, new MouseEventHandler(radGridView1_MouseMove), true);
 
private void radGridView1_MouseMove(object sender, MouseEventArgs e)
{
}
 
I hope this helps.

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Yonatan
Top achievements
Rank 1
Answers by
Yonatan
Top achievements
Rank 1
DADean
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or