Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting a row in a grid
Message
De
16/10/2000 14:49:43
 
 
À
16/10/2000 13:04:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00429840
Message ID:
00429933
Vues:
23
>When I select an item in my grid, only the cell I selected is highlighted. Is there a way to make the entire row appear selected?

YOu can use teh DynamicBackColor and DynamicForeColor properties.

First, you'll need a property on the grid, nRecNo. You populate this property with the current record number whenever you move rows in the grid and in the Init(). Make sure to refresh teh grid in AfterRowColChange(). And in the Init():
This.SetAll('DynamicBackColor', ;
	'iif(recno(This.RecordSource) = This.nRecno, rgb(0, 0, 128), rgb(255, 255, 255))', ;
	'Column')
This.SetAll('DynamicForeColor', ;
	'iif(recno(This.RecordSource) = This.nRecno, rgb(255, 255, 255), rgb(0, 0, 0))', ;
	'Column')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform