Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid content diont oprder correctly
Message
From
13/03/2024 15:13:23
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
 
 
To
13/03/2024 15:02:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01687690
Message ID:
01687703
Views:
23
Luis,
1)
Low level test. Is your cursor ordered (i.e what is the result of BROWSE) after SET ORDER? Just issue BROWSE NOWAIT after the sorting method ....

2)
Have you considered to SET ORDER like
SET ORDER TO tag instead of SET ORDER TO tag_number ? Like
SET ORDER TO i_dat  ...
3)
Consider to REFRESH the grid after the change of SET ORDER. It might not be as simple as just grid.refresh, I have a rather complex method that refreshes the grid after sorting to keep active row visible. It is decades old and working, and I do not understand it at first glance. Older then eventbinding ...

Lutz

>Hi community,
>
>I have a grid on my form and i place code inside them to order on click header but they don´t work correctly especially when the column is of the date type.
>I think the column index gets messed up.
>Because clicking on the customer name column doesn't work either.
>I don't know what else to do!!!
>Can someone please help me?
>

Hi Lutz,

Thanks for your reply, i will go to test your your suggestions.

Many thanks,
Luis
Previous
Reply
Map
View

Click here to load this message in the networking platform