Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
 
 
To
02/04/1999 14:19:54
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grids
Miscellaneous
Thread ID:
00204737
Message ID:
00204782
Views:
20
Jim,

The problem is the Form.Init() fires after the Grid.Init() so the cursor does not exist when the grid tries to bind to it.

1) If possible just create the cursor in the Form.Load()
2) If you have to use the Form.Init():
select *...
with this.grdTheGrid
   .ColumnCount = -1
   .RowSource = "TheCursor"
   .Refresh()
endwith
>I have a grid that is based on a cursor. The cursor is created in the Init event of a form. When the form is displayed the grid is completly white with no data. In the data session the cursor is created and does have data in it. What is the problem?
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