DatagridColumnStyles, mouse events

  • Thread starter Thread starter jason
  • Start date Start date
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.
 
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
 
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
 
Back
Top