I too assign the controlsources on the fly. Check out the Init event in
my custom grid class: http://leafe.com/archives/msg/493523
--Mike
On 2014-07-29 13:55, Jack Skelley wrote:
Desmond:
I have had grid issues in the past with VFP6 SP5. One of the work
arounds for this I found is to remove the controlsource from the grid
before you close the form. Then exit the form and when you re-enter
the form all should be 'normal'.
I now build grids dynamically when a form is entered. This save lost
of work in that the columns and fields are defined on the fly.
Jack
________________________________________
From: ProfoxTech [[email protected]] on behalf of Desmond
Lloyd [[email protected]]
Sent: Tuesday, July 29, 2014 1:42 PM
To: [email protected]
Subject: VFP6: The amazing disappearing grid....
Have a form that calls another form... The "final" form presents a
grid
from which the user is supposed to pick the desired item. I defined
the
grid in the form designer, named it etc. defined the data sources by
field name...
Works like a champ the first time in the form, however if I exit and
try o
go back the grid loses all of it's properties and suddenly contains all
the
fields (versus those designed into the grid).
Have tried defining the data sources "on the fly" in the init of the
form
and once again the first time in works fine, second time it blows up
saying that it can]'t find the property names associated with the
original grid???
Does that make any sense at all...
Have you guys seen this before?
Regards,
Desmond
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.