Unicode Controls & Classes for VB6 - Version 4

ctlUniGrid.GetRowByAbsY Function

Returns the row number relative to the given Y coordinate (the Y coordinate with the VScroll_Value)

Public Function GetRowByAbsY (ByVal y As Long) As Long
Parameter Description
ByVal y As Long The y coordinate
If the Y coordinate passed to this methid is not into any cell the result is -1&
Note: the "VScroll_Value" is NOT automatically added to the Y coordinate.