Returns a bookmark for the row currently displayed in the last row of the grid.

Syntax

<oRef>.lastRow( )

<oRef>

A reference to a grid object.

Property of

Grid

Description

Calling the lastRow( ) method returns a bookmark to the row currently displayed on the grid's last, or bottom, row. Note that if the grid's integralHeight property is set to false, the last row may be partly, or mostly, hidden by the bottom border of the grid.

If the grid is not datalinked to any rowset, the lastRow( ) method returns null.

See the example in the topic firstRow( ). These methods are quite similar and the example may prove helpful.