Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting a row in a grid
Message
De
16/11/2004 05:39:55
 
 
À
15/11/2004 12:04:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00961404
Message ID:
00961639
Vues:
6
Luigi

Thanks again for the suggestion. Just 2 things:

1. On starting the form, i get the message "Expression is invalid. Use a vaid expression for DYNAMICBACKCOLOR". I don't understand this as the he command looks fine to me.

2. As suspected, setting the logical field to .F. for all but the current record,
Replace lSelected with .F. all
means the grid loses its focused record and the last row in the grid is selected (and no amount of clicking on a row will prize it off the bottom line.

Any clarrification?

Any other suggestions out there, guys?

TIA

Terry

>Terry,
>
>In the parent grid insert a logic field exempl. lselected, in the AfterRowChangeEvent set at .T. that record of parentdbf and all others to .F. in the refresh metod insert
>
>
>thisform.grid1.setall("dynamicbackcolor", "IIF(parentdbf.lselected= .f.,rgb(255,255,255), rgb(249,255,187))", "Column")
>
>
>Luigi
- 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