Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid problem
Message
From
02/09/2013 11:02:05
 
 
To
02/09/2013 09:30:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01581827
Message ID:
01581837
Views:
73
>>Before closing the underlying table unbind the grid using RowSource = '' line and then re-bind with your
>>current code again after the table is opened again.
>
>
>I've always been surprised VFP did not automatically unbind when the associated data source goes out of scope. I think I will make that the default behavior in Visual FreePro.

FWIW, This behavior was added to VFP9:
Grids and RecordSource and ControlSource Properties
In Visual FoxPro 9.0 there is a change in Grid control behavior.
When the RecordSource property for a Grid control is set, Visual FoxPro 9.0 resets all ControlSource properties to the empty string ("") for all columns.
In earlier versions of Visual FoxPro, the ControlSource properties were not properly reset,
so problems could occur when a RecordSource with a different structure was later bound.
This change may impact scenarios involving Access and Assign methods
or BINDEVENT( ) function calls made against a Grid column's ControlSource property.
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform