Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table data won't show on grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00179857
Message ID:
00180077
Views:
28
Marie,

Ok, if it's a cursor that does not exist when the grid Init fires you will have the problem you are seeing. There are a couple of things to do

1) create cursor in the Form.Load()

2) Look at using a view, expecially if you will be recreating the rows at runtime.

3) If you can live with the default way a grid looks you can simply:
select ... 
   into TheCursor ...
with this.grdTheGrid
   .ColumnCount = -1
   .RecordSource = "TheCursor"
endwith
>Sadly, it is a cursor created during a calculation that has to be displayed, not a table. I misspoke. So I have no table to drag to create the grid.
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