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

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.

1 Reply

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

Loader.
Up arrow icon