DBGrid's Bookmark property in a Variant variable

Started by nandagopal, May 20, 2009, 07:02 PM

Previous topic - Next topic

nandagopal


Store the DBGrid's Bookmark property in a Variant variable. Later set its Bookmark property to this variable to return the underlying Recordset to that record.


Private m_SavedBookmark As Variant
    :
' Save the bookmark.
m_SavedBookmark = DBGrid1.Bookmark
    :
' Restore the bookmark.
DBGrid1.Bookmark = m_SavedBookmark