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

Click coordinates in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

15572 Jun 22,2004 12:07 PM Jun 23,2004 03:31 AM Windows Forms 1
loading
Tags: GridControl
Supriya Thakur
Asked On June 22, 2004 12:07 PM

Hi, We are using GridDataBoundGrid. We have masked the selection options so that only left click selects and the right click does not. Now when the user right clicks on the grid, the coordinates of the point of click are not available, while we want them . Is there any way to implement this ? Thanks, Supriya

Administrator [Syncfusion]
Replied On June 23, 2004 03:31 AM

You can always get the coordinates of the mouse using the static (Shared in VB) member Control.MousePosition. The point that is returned is in screen coordinates, so if you want them in grid coordinates, you have to use the PointToClient method. Point pt = this.grid.PointToClient(Control.MousePosition);

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

;