Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record Pointer in a Grid
Message
From
22/01/2007 10:58:34
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01187214
Message ID:
01187692
Views:
18
What do use as a grid recordsource? You said you show child records there, so it's a cursor?

>I tried the SEEK and I also tried with a GOTO but it didn't seem to work. The record pointer would stay at the bottom of the grid. If you suspended the program and looked at the table the record pointer had moved to the appropriate record but on the screen it was still showing the last record in the grid? I thought I should be able to just refresh the grid, but that didn't seem to help.
>
>Thanks,
>Don
>
>
>
>>>I'm having a tough time with a grid on a form. This form and grid worked fine in VFP 8 but since we moved it to VFP 9 it's not working properly. We have a screen based on an employee table with a grid that has child data in it (transactions).
>>>
>>>The transactions in the grid are ordered chronilogically and all that seems to work great. I add a record to the transactions table and no matter what date time I use it appears at the bottom of the grid. So let's say I use some date and time that should land somewhere in the middle of the data (that I would need to scroll up in the grid to find if it were in the right place). If I try to refresh it does nothing, my new record stays at the bottom. If I try to setfocus() on the grid, the grid re-orders correctly but the record pointer is still on the last record and now I have to scroll up to find my new record I just added.
>>>
>>>Both employee and transaction tables are VFP 9 tables. I'm wondering if this is a bug in VFP 9?
>>>
>>>Thanks,
>>>Don
>>
>>Could you just SEEK the record and then SetFocus to grid. That's normal way.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform