Object Reference > True DBGrid Methods > RowTop Method |
RowTop Method
The RowTop method returns the Y coordinate of the top of a visible row relative to the top of the grid, as given by the grid's Top property.
object.RowTop (rownumber)
Arguments
rownumber is an integer denoting a displayed row.
Return Value
A single corresponding to the Y position of the specified display row, based on the coordinate system of the grid's container.
Allowable values for the rownumber argument range from 0 to VisibleRows - 1.
Use the RowTop method in conjunction with RowHeight, Left, and Width to determine the size and placement of controls displayed on top of a grid cell.