Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing backcolor of row on grid
Message
De
12/07/2001 11:26:44
 
 
À
12/07/2001 10:58:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00529732
Message ID:
00529749
Vues:
9
>I want to change the backcolor of the currently selected row in a grid to highlight it.

make a variable available to the grid with the recno() of the currently highlighted row, say _currec=recno()...

in the DynamicBackColor property of each column in the grid place the following code:

IIF(recno()<>_currec,RGB(255,255,255),RGB(192,220,192))

in the AfterRowColChange method of the grid the following code:

_currec = recno()
this.refresh

change the RGB(192,220,192) to whatever color value you prefer for the background color.
On a CLEAR day you can see forever.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform