Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Individual Control Enablling in a Grid
Message
From
27/08/2010 11:11:40
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01478823
Message ID:
01478882
Views:
32
>>Can't you put the required expression in the Enabled property?
>>
>>.Enabled = inlist(tender.type,x,y,z)
>>
>>
>>(and column.sparse = .t.)
>>
>
>Didn't try that... but thanks for the heads up.... I wound up using DynamicCurrentControl for the Column to do the job...
>
>
>Thisform.grdTndrtype.column9.DynamicCurrentControl=;
>	"IIF(INLIST(tndrtype.tndr_no,3,4,5,8,15),'chkCashBack','chkDisabled')"
>
>
>and added a "dummy" checkbox called chkDisabled that is Disabled and not bound.
>
>thanks!

Ok, Tommy, if that works for you then great! But I wouldn't use other then the .Enabled property of a control to set its enabled/disabled status... ;-)
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform