Data.DB.TField.ReadOnly
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TField |
Delphi
property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;
C++
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
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.