Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ZAPping a table displayed in a grid
Message
From
21/03/2000 11:28:25
 
 
To
11/03/2000 17:40:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00344045
Message ID:
00348420
Views:
29
Why not try the following?

lcRecordSource= This.myGrid.RecordSource
This.myGrid.RecordSource= ""
ZAP in MyTable
This.myGrid.RecordSource= lcRecordSource

I did not try it but it works well for similar situtations (whenever the grid's recordsource is filled with a cursor created with a SELECT-SQL.)

Luis


>>Hi Ashley.
>>
>>>> I was just surprised and intrigued that the act of ZAPping the table (then populating it again) would cause the grid not to display the table's contents. <<
>>
>>So am I, considering that this is the way I do it and I don't have any problems ;-) Are you refreshing the grid after appending from the temporary cursor?
>>
>>Marcia
>
>It really happens sometimes, especially when grid is part of page. I don't know why, but it happens. So, just calling Grid.Init (it contains all settings) one more time (after ZAP) does not hurt.
>It could be another reason for grid problems: if re-populating code is fired when focus is on grid itself (e.g. from grid.column.command.click) then focus should be shifted to outside object and returned back.
Previous
Reply
Map
View

Click here to load this message in the networking platform