Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Grids - Alias Not Correct When Navigating
Message
De
24/08/2004 15:47:40
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00936081
Message ID:
00936091
Vues:
28
>>Form with multiple grids. I have a navigation command group that moves the record pointer. I use code in the Click events to set focus and refresh the proper grid depending on the current alias after the pointer is moved. The problem is that even if I select the alias in the AfterRowColChange event of each grid, the alias always reverts back to whichever was the default. So, when I click on my 2nd grid and then click on my navigate button, the pointer is moved in the wrong grid.
>
>I am not sure, what is the code in your naviagation buttons, but in our buttons we operate with DataEnvironment.SelectedAlias (or what is the property?). So, you need to search for this in your class code and perhaps change it in run-time based on what grid you're currently navigating.

I was able to resolve this by creating a CurrentAlias form property, but still would like to know why the alias was changing back to the same one regardless of what I selected. I wonder if it a form refresh issue of some sort?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform