Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Grid Question
Message
From
21/06/2001 23:43:31
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00521780
Message ID:
00522272
Views:
15
Hi Vlad,

Thanks a lot for the information, now I can prevent the grid from reconstructing and the layout is just exactly what I want.

I wish I'm not asking too much but I still have problem now :\

After using the new method, the grid can only show the first record of the table, not only this, if the table has 10 records, the grid would also have 10 rows each showing the first record of the table.

my code to trigger the Grid update is:
TempDBF="C:\TEMP\TEMP.DBF"

thisform.GridRefreshing = .T.

close tables
copy file "&SourceDBF" to "&TempDBF"
use &TempDBF

with thisform.MyGrid
  .RecordSource = "&TempDBF"
  && I want the 4 columns to show field 1,3,5,7 of the table:
  .column1.controlsource="Field1"
  .column2.controlsource="Field3"
  .column3.controlsource="Field5"
  .column4.controlsource="Field7"
endwith

thisform.Refresh
DOEVENTS
thisform.GridRefreshing = .F.
At design time, the init value of RecordSourceType of the grid is "table", RecordSource is "TEMP". Also for each column I have set the init value of controlSource as above.

Thanks a lot for your attention and any help would be greatly appreciated!

Jimi
error(503): file structure failure, signature file corrupted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform