Returns a value containing a bookmark for a row relative to the current row in a DataGrid control. Doesn't support named arguments.
Syntax
object.GetBookmark value
The GetBookmark method syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
value | Required. A long numeric expression that addresses rows of the DataGrid control relative to the current row, as described in Settings. |
Settings
The settings for value are:
Setting | Description |
0 | Returns bookmark of the current row — the same as DataGrid1.Bookmark . |
1 | Returns bookmark of the row following current row. |
-1 | Returns bookmark of the row preceding current row. |
n | Returns bookmark of the row relative to current row based on (DataGrid1.Row + n ) |
Remarks
The GetBookmark method may return values that are very different from the RowBookmark method because the current row may not be visible.