Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CGridList's SetOrder Method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
CGridList's SetOrder Method
Divers
Thread ID:
00394524
Message ID:
00394524
Vues:
43
Kevin,

I'm running into an error that I think the framework can avoid. Here is the scenario:

I'm using the CGridList class, I have a ControlSource for two of the columns that use a UDF. When I try to sort on a column, the click event of the header fires, and then it tries to sort on this column. In the SetOrder method of the grid, there is code that tries to decipher what the field and alias is. It doesn't get done correctly because of the UDF in my ControlSource. An example: columns ControlSource = MyUDF(v_SomeView.SomeField). It errs because of this. Can you place some logic here to try and determine the proper field name and alias, or at least check to see if the alias (that was determined) is in use before using RECNO() on it.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform