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.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

5860 Jul 21,2003 08:00 AM Jul 21,2003 11:47 AM Windows Forms 1
loading
Tags: GridControl
Eric Duesing
Asked On July 21, 2003 08:00 AM

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 11:47 AM

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.

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.

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

;