API:SimpleDS.TSimpleDataSet.ReadOnly
Delphi
property ReadOnly: Boolean read FReadOnly write SetReadOnly default 0;
C++
__property ReadOnly = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | SimpleDS.pas SimpleDS.hpp |
SimpleDS | TSimpleDataSet |
Description
Specifies whether the client dataset is read-only for this application.
SimpleDS.TSimpleDataSet.ReadOnly inherits from Datasnap.DBClient.TCustomClientDataSet.ReadOnly. All content below this line refers to Datasnap.DBClient.TCustomClientDataSet.ReadOnly.
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.