From RAD Studio API Documentation
Jump to: navigation, search


property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;


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


Type Visibility Source Unit Parent
property protected
Datasnap.DBClient TCustomClientDataSet


Specifies whether the client dataset is read-only for this application.

Use the ReadOnly property to prevent users from updating, inserting, or deleting data in the dataset. By default, ReadOnly is False, meaning users can potentially alter the dataset's data.

To guarantee that users cannot modify or add data to a dataset, set ReadOnly to True.

When ReadOnly is True, the dataset's CanModify property is False.

Note: Even if ReadOnly is False, users may not be able to modify or add data to a client dataset if it gets its data from a provider. The provider's Options property can limit whether data can be edited, and if so, what types of edits are allowed.

See Also