Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - AfterRowColChange
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966222
Message ID:
00966226
Vues:
8
>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.


Grid.setfocus() with AllowCellelection=.F. works fine for me. Can you post a simple code that repro this problem?

>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?

The help is incorrect. It's always column 3 which is the same as ActiveColumn
property.
For the current row see ActiveRow property of the grid.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform