Object Reference > True DBGrid Methods > RowBookmark Method |
RowBookmark Method
The RowBookmark method returns a bookmark for a visible row relative to the first displayed row.
object.RowBookmark (rownumber)
Arguments
rownumber is an integer denoting a displayed row.
Return Value
A variant containing a bookmark corresponding to the display row specified by rownumber.
If rownumber is 0, this method returns the bookmark of the first displayed row. The value returned will be the same as that returned by the FirstRow property.
Allowable values for the rownumber argument range from 0 to VisibleRows - 1.
This method only returns the current row (as determined by the grid's Bookmark property) if the current row is visible and the rownumber argument is equal to the grid's Row property.
Note
Do not confuse the RowBookmark method with the GetBookmark method, which returns a bookmark relative to the current row, even if the row is not visible.