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

Cell HitTest

Thread ID:





6453 Aug 13,2003 11:06 AM UTC Aug 13,2003 12:24 PM UTC WinForms 1
Tags: GridControl
Asked On August 13, 2003 11:06 AM UTC

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 12:24 PM UTC

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)


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