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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determining which border is mouse next to

Thread ID:

Created:

Updated:

Platform:

Replies:

32126 Jul 21,2005 08:55 PM UTC Jul 21,2005 11:13 PM UTC WinForms 1
loading
Tags: GridControl
Robert Linder
Asked On July 21, 2005 08:55 PM UTC

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 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.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;