Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox Control in Grid
Message
 
 
To
07/02/2002 14:36:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00616905
Message ID:
00617133
Views:
41
Keith,

When you ZAP the table you are ripping the table out from under the grid and it self destructs (loses all of the columns) and then it rebuilds itself. When it does this it reconstructs with itself with the default VFP controls.

You can use a parameterized view to avoid this problem. You can also set teh grid.RecordSource = "" just before the ZAP and then restore it afterwards.

>I have a table that links to a grid. One of the columns in the table is a logical field. I have placed a checkbox control, in the grid, for that logical field. Then I deleted the original textbox control. When I zap the table and then add some records to it, the grid uses a textbox control for the logical field, instead of the checkbox control I creatred.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform