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
Divers
Thread ID:
00394524
Message ID:
00394908
Vues:
11
Of course I can, but I think of this as a bug in the framework, and would rather not override any of the framework methods.

>>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.
>
>You should be able to do that on your own by simply overwriting the click method in you header.

Doug Stalter

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

Click here to load this message in the networking platform