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

g.PointToRowCol(pt,out row, out col,-1) and Row header

Thread ID:





5860 Jul 21,2003 12:00 PM UTC Jul 21,2003 03:47 PM UTC WinForms 1
Tags: GridControl
Eric Duesing
Asked On July 21, 2003 12:00 PM UTC

Is there any way to get PointToRowCol() to return false when on a RowHeader? It's returning the row/col for the row right next to the header. And what does this mean in the docs for this function since the function returns a bool: Use -1 if Syncfusion.Windows.Forms.Grid.GridRangeInfo.Empty should be returned.

Administrator [Syncfusion]
Replied On July 21, 2003 03:47 PM UTC

In the attached sample, PointToRowCol is returning the header cell coordinates when you click on a header. You may need to know the row and col of a header cell so that is why true is returned in this case. The range comment is in error. PointToRowCol actually calls another method, PointToRangeInfo which does return a range. The explanation of that last argument was copied from the docs on this second method which actually uses the paramater and returns a range.


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