Hi Peter,
Sorry, my mistake. I forgot, that ReadOnly doesn't work for DropDown combo.
Ok, there is another more complicated workaround here, which I was going to suggest yesterday, but switched to ReadOnly idea as simpler.
Leave the default textbox in the column and set its readonly to true. So, now you have two controls: combo1 and text1.
In DynamicCurrentControl (in Grid.Init) set it
'iif(myTable.myField="VALUE1","text1","combo1")'
Hopefully, this would work.
>Nadya,
>
>I have put the following in the AfterRowColChange without any apparent effect:
>
>
>llReadWrite=EVALUATE(THIS.Column7.Picklist1.CONTROLSOURCE)="USER" OR RECNO("ActiveMembers")<=0
>
>THIS.Column7.READONLY=NOT llReadWrite
>THIS.Column7.Picklist1.READONLY=NOT llReadWrite
>THIS.Column7.Picklist1.REFRESH
>THIS.Column7.REFRESH
>
>
>Guess what, setting the read-only property on the column does not change a thing - the dropdown is still active.
>
>I wish I could include a screen shot of my debugger. It shows that the column has been set readonly, but the picklist has not, the condition of course evaluates to true.
>
>It looks like the property simply can not be set.
>
>This is extremely frustrating, since enabling / disabling of the dropdown does does not work properly either.
>
>
>>
>> You can set column.ReadOnly property
>>column.ReadOnly=myTable.myField="VALUE1"
If it's not broken, fix it until it is.
My Blog