Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Aug 8, 1997

Highlighting a Row in a Bound DBGrid

To highlight the row containing the active cell in a bound DBGrid, add the record set's current bookmark to the grid's SelBookmarks collection:

 
Private Sub DBGrid_RowColChange _ 
        (LastRow As Variant, ByVal LastCol As Integer)

        If datCtl.Recordset.RecordCount Then
                DBGrid.SelBookmarks.Add _ 
                        datCtl.Recordset.Bookmark
        End If

End Sub



Peter Chyan
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date