CRDBGrid.ReadOnly and Lookupfields

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 39
Joined: Fri 16 Dec 2005 07:41

CRDBGrid.ReadOnly and Lookupfields

Post by tinof » Wed 05 Sep 2007 17:03

Hi again,

(another) readonly- problem:

If there ist a lookup - field in a dataset, displayed at a CRDBGrid, you can change the value of this field although the CRDBGrid is set to readonly. Clicking into a cell displays the dropdown-icon. Now you can change the readonly - grid.

Readonly - Setting the Column in the grid or the field in the dataset is a workaround.


Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 06 Sep 2007 07:38

This behaviour is inherited from TCustomDBGrid.

You can also set the ReadOnly for the underlying dataset.

Post Reply