RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDBGrid.ReadOnly Property

Indicates whether the grid is used for display only, or whether the user can edit data using the grid.

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

Set ReadOnly to true to prevent users from changing the data in the dataset. Set ReadOnly to false to allow users to edit data using the grid.  

When ReadOnly is true, users cannot use the Insert key to insert a new row in the grid or use the Down Arrow key to add a row to the end of the grid. 

 

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