RowBookmark Method

       

Returns a value containing a bookmark for a visible row in the DataGrid control. Doesn't support named arguments.

Syntax

object.RowBookmark value

The RowBookmark method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value Required. An integer in the range of 0 to the setting of the DataGrid control's VisibleRows property minus 1.

Remarks

RowBookmark(0) returns the same bookmark as the FirstRow property of the DataGrid control. The current row, as determined by the DataGrid control's Bookmark property, may not be returned by this method if the current row isn't visible.

Note   The bookmarks returned by RowBookmark should not be saved because their values change as soon as rows visible in the DataGrid control change.