Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the background colour of a row in a grid
Message
De
29/09/2005 10:21:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01054382
Message ID:
01054469
Vues:
26
>>>>>I have a grid bound to a table. Each record in the grid has a unique ID named no_in_row i.e. 10, 20, 30. I want to change the background colour on the row to grey or red for example but only if the no_in_row=110 when in disabled mode. Is this possible?
>>>>
>>>>Neil
>>>>
>>>>Further to Aaron's soln., I guess you could also squeeze a "and thisform.Grid1.enabled = .F." into the IIF()
>>>>
>>>>Terry
>>>
>>>Better to use form's property, such as thisform.lEditMode
>>
>>Maybe but cos the form's in or out of edit mode, doesn't mean the grid will be disabled/enabled. Besides, the .SetAll() usually goes in the form's .Init() doesn't it. Thus it only needs test the grid's .enabled status in the one place.
>
>DynamicBackColor evaluates dynamically <g>, so it would reflect current status of thisform.lEditMode. Setting lEditMode to false automatically sets all form controls into appropriate enable/disable state.

Maybe so, Tavaritsch, but who's to say that the grid is only disabled when the form's in edit mode. It may be disabled for some other reason :-)
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform