Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My grid shows the same record in all rows
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00358600
Message ID:
00358659
Views:
17
Hi Mahmood.

>> Need help on populating the grid with the cursor. <<

You would probably be better off using a parameterized view than a cursor. However, if you must use a cursor, create it in the form.load using create cursor. Then add a custom method to your grid class or to your form called ResetGrid and call it whenever you need to refresh the contents of the cursor. Code in the ResetGrid method is something like this:

SELECT Yada, Nada, Blah FROM SomeTable WHERE SomeCondition INTO CURSOR Temp NOFILTER
SELECT ( Thisform.MyGris.RecordSource )
ZAP
APPEND FROM DBF ('Temp' )
USE IN Temp

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform