Vcl.DBGrids.TDBGrid.ReadOnly
Delphi
property ReadOnly: Boolean read FReadOnly write FReadOnly default 0;
C++
__property ReadOnly = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TDBGrid |
Description
Indicates whether the grid is used for display only, or whether the user can edit data using the grid.
Vcl.DBGrids.TDBGrid.ReadOnly inherits from Vcl.DBGrids.TCustomDBGrid.ReadOnly. All content below this line refers to Vcl.DBGrids.TCustomDBGrid.ReadOnly.
Indicates whether the grid is used for display only, or whether the user can edit data using the grid.
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.