Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Individual Control Enablling in a Grid
Message
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:
01478868
Views:
40
>>Hi Gang!
>>
>>question.....
>>
>>I have a grid (from a previous program) that has a column (Cash Back) with check boxes in it.
>>
>>Each row of this Grid is a tender type in a POS system.
>>
>>Depending upon the the tender type, I'd like each row to enable or disable the Cash Back check boxes.... so each row can have a check box either enabled or disabled in it.
>>
>>Is it possible? I looked at the Dynamic properties, but did not see anything there I could use.
>>
>>Thanks for the help !
>
>One possibility will be to add code in the checkbox.When and refresh methods

I went ahead and used DynamicCurrentControl to do the job. 2 controls in the column - the 1st is the original checkbox, and the 2nd is another that is disabled and not bound to any field. The DCC picks the correct control based upon the tender type.

This is in the INIT of the grid...
Thisform.grdTndrtype.column9.DynamicCurrentControl=;
	"IIF(INLIST(tndrtype.tndr_no,3,4,5,8,15),'chkCashBack','chkDisabled')"
Works good.

Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform