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

Click coordinates in GridDataBoundGrid

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

1 Reply

AD Administrator Syncfusion Team 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);

Live Chat Icon For mobile
Up arrow icon