Skip to main content

TcxCustomEditProperties.ReadOnly Property

Specifies the desired read-only status of an editor.

Declaration

property ReadOnly: Boolean read; write;

Property Value

Type
Boolean

Remarks

For non data-aware editors, this property specifies the read-only status of an editor. Setting it to True prevents an end-user from making data modifications. The default value of the ReadOnly property for non data-aware editors is False.

There is one difference for data-aware editors. If an editor is bound to a read-only field in a dataset, you still cannot edit the value even if the ReadOnly property is set to False. The default value of the ReadOnly property for data-aware editors is determined by the bound field’s CanModify property value.

Use the RestoreDefaults method to restore the default values of the ReadOnly property and other properties which are retrieved from the related field object attributes.

See Also