Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Enable and Disable a Checkbox in grid ?
Message
From
21/06/2014 01:54:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/06/2014 00:19:26
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01602112
Message ID:
01602163
Views:
70
>Hi,
>
>the following code store in refresh method of the column ?
>
>.dynamiccurrentcontrol="iif(myfield=1,[checkboxenabled],[checkboxdisabled])"

No, it should be done before the grid is shown, so it should go into .init() - of the column or the grid. I prefer the latter, so it's easier to find when editing, and in runtime it runs after all the .init() code in columns and controls, so there's no guessing at what runs in which order.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform