>Hi Jaime
>
>>I don't know if this is going to work with This.CurrentControl.Value, you said you wanted for rows containing **records**, so you should base this on the existence of a record in your table. Just use a field which is always filled, like the id, otherwise, i would try playing with recno()
>
>Thanks for your last suggestion, it did work for me, but to follow up on the same (similar) issue.
>
>How can I change the column backcolor to the backcolor of the form
only for columns that are readonly=.t. and enabled=.f.
>
>I tried to put in this.... in your suggestion but that does not work.
>
>Please advise.
I've run a little test and found that any dynamic expression in the grid's columns is evaluated in the context of the grid, not the column, so...
this.column5.dynamicbackcolor="iif(this.column5.readonly and not this.column5.enabled, "+ ;
transform(thisform.backcolor)+", 0xffffff)"