Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Build a grid on the fly
Message
 
 
To
25/07/1999 18:29:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00245910
Message ID:
00245958
Views:
13
John,

Just add a CoumnCount=-1 before setting the RecordSource and it should rebuild itself just fine.

>I need to open a table that is selected with GETFILE() and set a grid to display it for raw editing of the data. I can't seem to find the magic syntax to display the file seleced in the grid. So far I am trying the following but the table does not show up in the grid... Any ideas??
>
>WITH ThisForm
> .cTable = GETFILE("DBF", "Select a Table", "Open", 0, ;
> "Open a Table to Edit")
>
> IF NOT EMPTY(.cTable)
> USE (.cTable) IN 0 EXCLUSIVE
> SELECT (.cTable)
> .grdEditTable.RecordSource = (.cTable)
> .grdEditTable.Refresh()
> ENDIF
>ENDWITH
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform