Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental search - highlighting active record in grid
Message
De
06/09/2000 14:53:28
 
 
À
06/09/2000 14:20:49
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00413111
Message ID:
00413138
Vues:
16
>I'm trying to highlight the selected record in the grid (color the activerow). I've been fiddling around with SetAll("DynamicBackColor" ... etc. No luck yet tho. Perhaps there's an easy way to those in the know ...!

What you need to do is have a property somehwere hold the RecNo() of the record source of your grid. Have it updated in the AfterRowColChange of the grid. Then, the Grid.Init() shoudl look like:

this.nRecno = recno(this.recordsource)
this.setall('dynamicbackcolor', 'iif(this.nRecNo = recno(this.recordsource), rgb(0, 0, 255), rgb(0, 0, 0))', 'column')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform