Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why my AfterRowColChange not functioning properly
Message
De
17/11/2004 11:33:31
 
 
À
17/11/2004 09:34:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00962129
Message ID:
00962245
Vues:
12
Hi Alessio

>Personally I add a property (say nrec) to my grid class and stored in its afterRocolChange method this.nrec = recno(this.recordsource)
>then set in its init method
>this.setall("DynamicBackColor", "IIf(recno() = nrec,HighlightColour,NormalColour)),"column")
>doing that u should only set the focus and then refresh each of your grid to have their current record highlighted.
>HTH
>Alessio

Thanks for that. It works at the beginning but as soon as you select a different row in the grid it doesn't. The very 1st row in the grid remains highlighted. I admit to putting some of the code in the actual form's grid, rather than in the class, because I don't want this behaviour for all my grids om all my forms.

Cheers

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform