BaseTableControl.getFirstDisplayRow

Returns the row number of the first displayable row - equivalent to scroll to top. Returns -1 when the table is empty.

Further documentation.

returns int