I've ended up with the following code in the Grid's AfterRowColChange event
IF schedulegrid.lhistory
this.Column1.cmbCStatus.ListItem(3)="\Cancel"
this.Column1.cmbCStatus.ListItem(4)="\Reschedule"
ELSE
this.Column1.cmbCStatus.ListItem(3)="Cancel"
this.Column1.cmbCStatus.ListItem(4)="\Reschedule"
ENDIF
>I guess one of the ideas would be to re-populate (and requery) the combo in Grid's AfterRowColChange event.
>
>>Hi Naomi
>>
>>Yes, but I want the combo to react to whichever record I'm currently on in the grid
>>
>>e.g. lets say credlim N 6 2
>>
>>If credlim is less than 1000 then we don't want the "free delivery" status to be enabled.
>>
>>Hope this makes sense
>>
>>
>>>>Say I have a table, and one of the fields is status c(20).
>>>>
>>>>In my grid I give a drop down combo box to allow the user to select the current status.
>>>>
>>>>But on some of the records I need to grey out some of the selections based on whats in other fields in the record.
>>>>
>>>>Is this possible in VFP?
>>>>
>>>>TAI
>>>
>>>Yes, add \ in front of the item to make it disabled.
Rob