Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - AfterRowColChange
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid - AfterRowColChange
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966222
Message ID:
00966222
Vues:
69
A couple of grid questions:
1. The AfterRowColChange event triggers when you select a new cell using the mouse or the keyboard.
Q: Shouldn't the event trigger when the record pointer in the source table moves?
I think it should, because you can see the record marker and row highlight move, but it does not.
To get around this we put code in our classes that loops through the objects in a form when we move to another record, and if the object is a grid does a loControl.setfocus(). This however does not work when AllowCellelection is set to .F., because setfocus fails.
2. The help says that nColIndex (the AfterRowColChange para) "returns the index of the newly selected row or column", but it seems it always returns the column index.
Q: What would be the row index?
TIA
Doru
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform