Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing grid formatting
Message
From
03/03/2006 12:00:42
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01099587
Message ID:
01101291
Views:
21
I read it again. What exactly did I miss?

Sorry. I thought that Andy included some of what I had written in Chapter 6 of KiloFox but he hadn't:

One way to avoid having the grid turn into a blank grey blob is to set its RecordSource to an empty string before running the SELECT and then resetting it afterward. Although this will work in the simplest of cases, it is not a solution we recommend. While it will keep your grid from losing its mind, the grid's columns still lose their ControlSources and any embedded controls. So, this works if your grid uses base class headers, base class text boxes, and displays the fields from the cursor in exactly the same order as they are SELECTed. Otherwise, you have to write a lot more code to restore all the things that get lost when the grid is re-initialized.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform