Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynamicbackColor - How do I make a grid cell colored?
Message
De
08/10/2001 07:36:09
 
 
À
08/10/2001 06:10:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565400
Message ID:
00565420
Vues:
20
Hi Tim.

>> Hi, I am trying to get a grid cell in a different color.

What I really want is that there is a narrow border around the cell,
but it would be acceptable if the color was changed inside the cell.

The best I can do is change the dynamicbackcolor and forecolor using something like: <<

Which grid cell(s) and under what conditions? Generally speaking, DynamicBackcolor and DynamicForecolor are used for things like displaying all the amounts less than zero with a red background or highlighted all the selected records in the grid. What is your objective here?

For example, if you wanted to display all the negative amounts with a red background, you would put something like this in the init of your grid:
This.SetAll( 'DynamicBackColor', ;
	'IIF( MyRecordSource.MyField < 0, RGB( 255,0,0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform