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