Datasnap.DBClient.TCustomClientDataSet.ReadOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;

C++

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

Properties

Type Visibility Source Unit Parent
property protected
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

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