[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBCtrls' (#lcl)

# TDBCalendar.ReadOnly

Indicates if the control cannot modify the field in the linked dataset.

## Declaration

Source position: dbctrls.pp line 1298

`published property TDBCalendar.ReadOnly : Boolean read GetReadOnly write SetReadOnly default False;`

## Description

ReadOnly is a Boolean property which indicates if the control cannot modify its DataField in the linked dataset. When set to True, the underlying field value cannot be modified using the control.

Read and write access for the property value are redirected to the ReadOnly property in the TFieldDataLink instance used in the control.

Remark: | A value assigned to ReadOnly may be overridden by the Field definition from the target database table.

## See also

TDBCalendar.DataField |  | Contains the name of the field with the value for the control.
TDBCalendar.DataSource |  | Provides access to the dataset with content for the control.
TDBCalendar.Field |  | Provides access to the field definition for the data-aware control.
TFieldDataLink.Field |  | The Field to which the datalink is attached.
TDataLink.ReadOnly
TDataLink.DataSource
TDataLink.DataSet