>It could be nice if the grid had a dynamicreadonly property.
>
>Is there anyway I can mimic this functionality in code. The problem is I would like some cells in a column to be readonly and some cells to be editable based on the criteria (workspec.rowstatus=1).
>
>This there anyway to do this?
>
>BR
>Tim
Tim,
I usually add another control to the column. One Control is set to ReadOnly = .T., the other ReadOnly = .F.
Then it is just a matter of using DynamicCurrentControl.
You can use the DynamicBackColor to let the user see whether the cell is editable
Another possibility would be to return FALSE (if not editable) from the when() event of the currentcontrol of the column
Gregory