>>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