Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid order
Message
De
10/05/2016 13:22:07
 
 
À
10/05/2016 09:06:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01636103
Message ID:
01636117
Vues:
69
J'aime (1)
>I have a grid on a form, which services a number of files with exactly the same structure. Problem I am having is that I can't set the order programmatically. At the start the order is fine, but change the RecordSource, and try to set order, and nothing happens. I can put code in the header of a column, and physically click it, and then the order will change correctly, but if I click that header programmatically, it triggers the messagebox() I have there saying 'we are here!', but the code doesn't run. Click the header with the mouse, and it runs great. I am sure someone has battled this demon before. Thanks for your help!

The problem is that you're changing the RecordSource. That removes all customization of the grid.

To have code that persists when you change the RecordSource, it needs to be in the grid class, not the grid object.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform