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. Image for the cookie policy date
close icon

Determining which border is mouse next to

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

1 Reply

AD Administrator Syncfusion Team July 21, 2005 11:13 PM UTC

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.

Live Chat Icon For mobile
Up arrow icon