Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CGridList's SetOrder Method
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00394524
Message ID:
00394811
Views:
10
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform