Unicode Controls & Classes for VB6 - Version 4

ctlUniGrid.GetRowByY Function

Returns the row number relative to the given Y coordinate (the Y coordinate without the VScroll_Value as obtained by the MouseMove, MouseDown and MouseUp events)

Syntax
Public Function GetRowByY (ByVal y As Long) As Long
Parameters
Parameter Description
ByVal y As Long The y coordinate
Remarks
If the Y coordinate passed to this methid is not into any cell the result is -1&
Note: the "VScroll_Value" is automatically added to the Y coordinate when you pass it to this method (so the Y parameter refers only to the visible viewport).