Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control a row in a grid based on other row
Message
 
 
À
12/05/2008 16:10:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01316474
Message ID:
01316592
Vues:
19
>Naomi
>
>How to use DynamicForeColor (as an example) to set the color based on different row. for example change row#3 color based on a check box in row#1
>
>Mo

Mo,

In VFP the Grid control is bound to the table / cursor. So, the CheckBox represents some field, say, myTable.Checked (logical field)

Now, if you only want to change one particular column, you would do

thisform.myGrid.myColumn.DynamicForeColor = "iif(myTableChecked, rgb(...), rgb(...))"

For All Columns in the Grid you would use SetAll method to set DynamicBack or Fore Color.

I'm writing from the top of my head, you may still want to re-check these properties in the Help.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform