Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically tell WHICH row in grid is selected?
Message
De
26/04/2000 15:56:05
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
 
 
À
26/04/2000 10:42:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00363425
Message ID:
00363757
Vues:
23
This maybe a dumb questions.... but how do you add a property to a "grid"? The only way I know how to
add properties is to use the FORM/NewProperty menu option and that is to the form.


>>Don't I need something in the "column" that states "this row# is" or something like that so I can compare it in the IIF to the ActiveRow to change the color?
>
>Are you just trying to change the backcolor of the Current Row? I thought you wanted to change the color of every row to something different.
>
>Then what you do is have a property which holds the recno(). In everyAfterRowColChange(), you update this property and refresh() the grid. And in the Init, something like:
>
>this.SetAll('dynamicbackcolor', 'iif(this.nRecno = recno(), rgb(0,0,255), rgb(255,255,255))', 'column')
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform