Page 1 of 1

CRDBGrid.ReadOnly and Lookupfields

Posted: Wed 05 Sep 2007 17:03
by tinof
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.

Thks.
Tino

Posted: Thu 06 Sep 2007 07:38
by Antaeus
This behaviour is inherited from TCustomDBGrid.

You can also set the ReadOnly for the underlying dataset.