RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.ReadOnly Property

Determines whether the field can be modified.

Pascal
property ReadOnly: Boolean;
C++
__property Boolean ReadOnly;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!