Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Color Problems
Message
From
24/07/2006 09:39:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01139110
Message ID:
01139141
Views:
10
>Cetin:
>
>That code work like a charm. But what is causing that my property get erase?

I suspected what is called a "Grid reconstruction". Here is a sample of scenario:
-At design time you build up your grid with a recordsource.
-At runtime you do something with the recordsource. ie: a select into cursor.

That removes all columns and rebuilts from that cursor's fields. All column and controls level settings are gone. To prevent it:

.RecordSource = ""
* do whatever here. ie: select * from customer where ... into cursor crsGridSource
.RecordSource = "crsGridSource"

That'd keep settings during design intact. You can find details about grid reconstruction in FAQ section.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform