Hi,
I have a database lock that I can't find. I have to make a mistake somewhere in the following. I have 2 datagrids on a Form, each with its own connection, transaction and query, to be provided with data. That works, but if I then want to expand 1 of both datasets with a new record, I get a datalock message.
I have brought this back to a test project. See the attachment. This creates a SQLite database in the exe folder during startup and then creates 2 dummy tables and 1 record of data. If you then click on the btnAdd1 or btnAdd2 button, you will see the datalock message. I use express 2 connections to the database because otherwise after changing data in 1 grid the other grid went empty.
How can I put 2 datagrids on a screen, each with their own dataset (no master detail). And the dataset per Dbgrid must be editable.