Vcl.DBCtrls.TDBEdit.ReadOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ReadOnly: Boolean read GetReadOnly write SetReadOnly default False;

C++

__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBEdit

Description

Determines whether the user can use the database edit box to change the value of the field in the current record.

Set ReadOnly to true to prevent the user from changing the contents of the database field. When ReadOnly is true, the edit control is used only to display the contents of the field. If ReadOnly is false, the user can change the field's value as long as the dataset is in edit mode.

See Also