Hi, Denis.
One more idea.
You can put in each column of your Grid two similar objects,
f.e. TextBoxEnable & TextBoxDisable based on FoxPro base class TextBox.
This two classes has different value of Enabled property.
In the AfterRowColChange method you must write:
If _YourSpecialField = .T.
ThisForm.Grid1.Column1.CurrentControl = "TextBoxEnable"
Else
ThisForm.Grid1.Column1.CurrentControl = "TextBoxDisable"
Endif
In addition you may set some properties different,
f.e. TextBoxDisable.BackColor = rgb(0, 0, 0) and you get not only
ReadOnly control but two records looking different!
Regards,
Dmitri Alexandrov