Overview | Methods | Fields | This Package | All Packages
Retrieves the y-coordinate at the top of the specified row.
Syntax
public int rowTop( Object row )
Parameters
row
The bookmark associated with a row in the grid.
Return Value
Returns the y-coordinate at the top of the row, relative to the coordinates of the DataGrid control.
Exceptions
WFCInvalidArgumentException thrown if row does not reference a valid row.
Remarks
The rowTop method returns a coordinate for any row in the grid, regardless of whether the row is visible in the grid's current scroll position. If the row lies before the set of currently visible rows, the returned coordinate is negative.
You can use the rowTop method and rowHeight property, along with the left and width properties of a column, to determine the exact location and dimension of any cell in the grid.