FireDAC.Comp.DataSet.TFDAutoIncField.ReadOnly

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDAutoIncField

Delphi

property ReadOnly default True;

C++

__property ReadOnly = {default=1};

Description

Determines whether the field can be modified.

FireDAC.Comp.DataSet.TFDAutoIncField.ReadOnly inherits from Data.DB.TField.ReadOnly. All content below this line refers to Data.DB.TField.ReadOnly.

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.

See Also