Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh
Message
From
26/07/2002 20:31:45
 
 
To
26/07/2002 16:10:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00683122
Message ID:
00683179
Views:
26
Let's say you initially create a cursor and set it as the recordsource
of the grid. Once you run a query to repopulate the new cursor you
have temporarily lost control of the cursor and it can bring back
any type of structure. By setting it to "" between queries VFP takes
no action and then when the cursor is reset with the same structure all
is well. At least that sounds good to me and is close to what is happening.

>That worked like a charm...but why do you have to set the recordsource to "" in order to make it work?
>
>>Use a view and requery or do the following:
>>
>>grid.recordsource = ""
>>*-- run query
>>SELECT statement into cursor xx
>>grid.recordsource ="xx"
>>
>>
>>
>>>Working in VFP 5.0 - I have a form with a grid hardcoded on it. The table the grid is populated by is a temporary table, not part of the database. The grid loads up just fine. I have a button that the user clicks on to update some fields and need the grid to refresh. I have not been able to get this to work. Whenever I try to refresh I just get a blank grid screen or an error telling me that it doesn't recognize the columns of the grid (Unrecognized Member). Can anyone help me out? Why can't I refresh the grid?
>>>
>>>TIA!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform