DatagridColumnStyles, mouse events
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.windowsforms.

Post a new message to this list...

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.

Reply to this message...
 
    
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

"jason" <Click here to reveal e-mail address> wrote in message
news:4135751c$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
jason
Thanks !

"ClayB [Syncfusion]" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.TableStyle
System.Windows.Forms.DataGrid




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com