Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort data in the grid
Message
From
05/12/2001 06:29:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/12/2001 16:33:47
Eugenijus Rimkus
SPAB Siauliu energija
Siauliai, Lithuania
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00589521
Message ID:
00589691
Views:
31
>Hi!
>
>I use grid whose recordsource is alias from remote view. How I have to create function in the grid.columnX.headerX.DblClick which could sort my data by clicked column.
>
>Thanks
>Eugenijus Rimkus

Considerations, in addition to the replies you already got:

  • You may want to check whether an index on the desired index expression already exists, and then just SET ORDER TO.
  • Temp indices have to be erased before doing certain stuff, like transactions, I think.
  • For character expressions, use indices on upper(expression).
  • You can also use the active order for incremental search. Use Column.Text1.KeyPress().

    With the framework Visual Extend, when I press a key in a column, the framework will a) sort on the column, b) start incremental search. Also, I can sort on more than one column (Ctrl-Click on the second and later columns).

    HTH, Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform