Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to highlight RECNO() in a grid?
Message
De
13/05/2000 11:08:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00369186
Message ID:
00369342
Vues:
23
>How do I get the grid to highlite the record that was searched for?

Create a property on the grid (or form, but preferably the grid) to hold the Recno() of the grids record source after every move of the record pointer (You can do it in an Init() and then in AfterRowCOlChange()), the set the dynamicbackcolor property of each column to 'iif(this.nRecno = recno(this.recordsource), rgb(255, 0, 0), rgb(255, 255, 255))'.

Cetin has an example of this in the Files section, find "Two grid classes".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform