Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Search
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01523725
Message ID:
01523776
Vues:
63
>Hi
>
>I have a grid whose data is a cursor - I search the grid by client and the search works OK
>
>How do I make the record I have found become the top record in the grid?


Hi,

I have a feeling this cannot be done, at least not so easy. And how about the other records, which sequence should they have?
In my opinion it is simpler to make use of the highlight property and mark the found record with a distinct backcolor. In case your customer insists, solve the sequence of the other records first and than:
1. add a sequence field (integer) to your cursor and an index to that field
2. the found field will have number 1 the others as you like
3. set order to iSequence
4. make use of the 'safe select' and repopulate the grid.
Feel free to report back if you need any assistance to the above.

Best regards,

Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform