Good day!
I have a Query, DataSource and DBEdit. DataSource.AutoEdit is false. Query.State is not in dsEdit or dsInsert. So I can’t change the value in DBEdit. But if I press Delete key, value in DBEdit deletes (Query.State doesn’t change). And if focus leaves this DBEdit, I receive an “Dataset not in edit or insert mode”. Is that a some bug or something else and how can I fix this? I’ve tested this in new simple projects to be sure that the problem is not in my project.
Delphi version: Delphi® XE Version 15.0.3953.35171
I think you can set TDBEdit.ReadOnly to true, when the dataset is not in edit state and change it as the dataset state changes.
Google shows the bug report in 1st 5 links