Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Text
Message
De
13/05/1999 13:59:26
 
 
À
13/05/1999 13:45:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00218501
Message ID:
00218513
Vues:
20
>I've have a grid that displays 3 fields:
>
>Description Due Date Completion Date
>
>I've created a method that calculates the number of days 'til the completion date. I'd like to fire that method for every record in the grid.

You can createa form method that does this calculation, and make the column.controlsource for the completiondate column ="THISFORM.CalculateCompletionDate()"

>And how can I determine what row I'm in on the grid, I'd like to change the color of the grid line of the selected record.
>

you need to create a custom grid property that records the record position and set it in after rowcolchange. Then set each column's DynamicBackColor property to

IIF(this.grdcurrow = RECNO(this.recordsource), [somecolor], [someothercolor])

I think there is a sample in the files section that demonstrates this.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform