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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Click coordinates in GridDataBoundGrid

Thread ID:





15572 Jun 22,2004 04:07 PM UTC Jun 23,2004 07:31 AM UTC WinForms 1
Tags: GridControl
Supriya Thakur
Asked On June 22, 2004 04:07 PM UTC

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 07:31 AM UTC

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);


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon