RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.ReadOnly Property

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

Pascal
property ReadOnly: Boolean;
C++
__property Boolean ReadOnly;

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.
 

 

Active 

CanModify 

Options

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!