Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know order() from select-sql
Message
From
24/09/2004 04:40:06
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
24/09/2004 04:04:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00945631
Message ID:
00945642
Views:
28
Stefan,

PMFJI, have you tried this ? Even after a REQUERY() on the view? There is a lot of tricky stuff involved here.

For what I remember the "sort grid", download#9970 from Vlad Grynchyshyn will be a good example on how to do sorting on the grid with header click. I'm not sure if some small problems with views in that example are fixed. If you have problems with views on that, feel free to post to me.

Further discussions of the issue will be in thread#622396

Agnes

>> i have a grid in my form where i want to order the recordsource
>> (a cursor from select * drs into cursor csrdrs) when my user click
>> on each column's header.
>>
>> i want to know first in what oder is the column set, so i should be
>> able to do an order by ascending or descending.
>
>If your RecordSource is a View or temp SQL result, you can use temporary indexing:
>
>Select (yourGrid.RecordSource)
>Index On fieldX Tag tagY
>
>and then Set Order To && Descending at runtime
>
>
>hth
>-Stefan
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform