We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Determining which border is mouse next to

Thread ID:





32126 Jul 21,2005 04:55 PM Jul 21,2005 07:13 PM Windows Forms 1
Tags: GridControl
Robert Linder
Asked On July 21, 2005 04:55 PM

Hello All, I am researching how to detect a mouse down over a cell border. I found CellMouseDown & CellHitTest for locating the mouse down over a cell. I could use e.MouseEventArgs.X, e.MouseEventArgs.Y and figure out using RowHeights and ColWidths if there is a hit. Any ideas on how to do it. Robert

Administrator [Syncfusion]
Replied On July 21, 2005 07:13 PM

You can use grid..RangeInfoToRectangle to get a rectnagle of the cell bounds. Then you can compare the point to this rectangle to see the point is colse to one edge or another.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.