True DataControl 8.0 Reference > Field Object > Field Object Properties > ReadOnly Property |
Sets/returns whether a field can be modified.
Field.ReadOnly = boolean
Read/Write at run time and design time. Property applies to Field object.
This property determines whether the field can be modified by the end-user.
The default value is False, which means that the field may be edited.
If set to True, the end-user cannot modify the field, but its value can still be changed in code or by evaluation of a TData control expression.
In data source mode, if a data field is read-only in the data source, its DataSourceReadOnly and ReadOnly properties are set to True and cannot be changed.
For more information, see True DataControl Fields.