dcsimg
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

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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