Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM: Grid changes my currently selected area/alias
Message
De
16/03/2006 17:21:55
 
 
À
16/03/2006 16:45:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01105063
Message ID:
01105124
Vues:
38
As stated by many:

1) There is no way to prevent the grid from changing the alias.

2) If you are going to use grids, you can never assume what the current alias is at any given moment. You need to explicitly select the required alias before any code runs.

That is the only answer!!!!!

Why do you insist on asking the same question over and over and over and over, expecting to get a different answer.

I believe that the correct answer in your case is that you or who ever originally created the app, didn't code defensively for these types of scenarios. Since using a grid requires defensive programming, you can not use grids in your app without a substantial amount of work.

>All my forms already use a private datasession. The problem is that the current alias has been changed automaticly by anyone of the grid events. Even changing the column width changes the alias automaticly.
>
>There are times when I wan't the grid to have the focus while the user interacts with it but I don't wan't it to automaticly change the alias to its recordsource because another controls event can fire if it was queud by windows or if the user moves the mouse around.
>
>Does anyone know how to prevent the grid from automaticly changing the current alias to its own recordsource?
>
>Or does anyone have an idea on how to detect the automated alias change so I can reset it?
>
>Thanks.

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform