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.

Cell HitTest

Thread ID:

Created:

Updated:

Platform:

Replies:

6453 Aug 13,2003 07:06 AM Aug 13,2003 08:24 AM Windows Forms 1
loading
Tags: GridControl
Martin
Asked On August 13, 2003 07:06 AM

Hi Is there a way to pass x,y mouse co-ordinates in a SyncFusion grid and return the cell or RowIndex/ColIndex of the cell it's in. I know that in the majority of cases the grid.CurrentCell works, but in some instances (like when columns are being multi selected) the last cell clicked isn't always the .CurrentCell. Thanks Martin

Administrator [Syncfusion]
Replied On August 13, 2003 08:24 AM

Given a Point pt in grid coordinates, you can use PointToRowCol to get the row and col. int rowIndex, colIndex; this.gridDataBoundGrid1.PointToRowCol(pt, out rowIndex, out colIndex, -1); 'or in VB Dim rowIndex, colIndex As Integer Me.gridDataBoundGrid1.PointToRowCol(pt, rowIndex, colIndex, - 1)

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.

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.

;