Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Search
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01523725
Message ID:
01523776
Views:
64
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform