DatagridColumnStyles, mouse events

J

jason

hi,

I have class inherited from DataGridColumnStyles. Override it's paint event
to draw an image. I want to track the mouse position when cursor moves
inside the image area. But the DataGridColumnStyles does not listen to mouse
events.

Is it possible to add mouse events to DatagridColumnStyles?

Thanks.
 
C

ClayB [Syncfusion]

From your columnstyle, you can get at the TableStyle, and from this
TableStyle, you can get at the DataGrid, and then get the mouse events of
the grid. Maybe you can use these to decide when you are over your image.
Here is how you might get at the mousemove event so you could subscribe to
it, this.DataGridTableStyle.DataGrid.MouseMove.

======================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools
 
J

jason

Thanks !


ClayB said:
From your columnstyle, you can get at the TableStyle, and from this
TableStyle, you can get at the DataGrid, and then get the mouse events of
the grid. Maybe you can use these to decide when you are over your image.
Here is how you might get at the mousemove event so you could subscribe to
it, this.DataGridTableStyle.DataGrid.MouseMove.

======================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top