Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color the active line in grid
Message
 
À
22/05/2005 07:39:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01016554
Message ID:
01016564
Vues:
9
Help please,
How can I color the active line in grid and to uncolor it by passing to other line?


In VFP9 is easily.

One example:
In VFP8 make form's property 'Nrecno'
(for grid1: recordsourcetype = 1 and recordsource = rab)
In INIT of form put
thisForm.nRecNo = RecNo("rab")
thisform.grid1.SetAll("DynamicBackColor","IIF(RecNo('Rab')=thisform.nRecNo,RGB(64,128,128),RGB(192,192,192))","Column")
In thisform.grid1.afterRowColChange put
LPARAMETERS nColIndex
ThisForm.Nrecno = RECNO("rab")
ThisForm.Grid1.Refresh
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform