Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a table using same grid!
Message
 
To
25/11/1998 07:48:54
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00161277
Message ID:
00161290
Views:
23
When you change the RecordSource of the Grid, You need to redefine the controlsource of every column. Try something like

SELECT NewTable
WITH THISFORM.Grid1
.RecordSource = "NewTable"
.ColumnCount = FCount()
FOR n = 1 to .ColumnCount
.Columns(n).ControlSource = "NewTable." + FIELD(n)
NEXT
.REFRESH
ENDWITH
Previous
Reply
Map
View

Click here to load this message in the networking platform