Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically tell WHICH row in grid is selected?
Message
 
À
25/04/2000 22:57:33
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00363425
Message ID:
00363759
Vues:
10
What you need to do is store the recno() to a form property in the Afterrowchange event. In the init of the grid class add the following:

with this

.SETALL('DYNAMICBACKCOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(0,0,128), RGB(255,255,255))', 'COLUMN')
.SETALL('DYNAMICFORECOLOR', 'IIF(RECNO() = THIS.CurRecNo, RGB(255,255,255), RGB(0,0,0))', 'COLUMN')

endwith

You'll have to adjust it to suite your requirements, but you get the picture.

Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform