Data.DB.TField.ReadOnly
Delphi
property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;
C++
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.DB.pas Data.DB.hpp |
Data.DB | TField |
Description
Determines whether the field can be modified.
Set ReadOnly to true to prevent a field from being modified. In a data grid, tabbing from field to field skips over ReadOnly fields.
To learn whether a field can be modified, use the CanModify property instead. CanModify reflects not only the value of the ReadOnly property, but also any restrictions imposed by the underlying dataset.