DBgrid in edit mode with TmyDatasource and NOT with standard Datasource

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 7
Joined: Sat 06 Jan 2018 15:37

DBgrid in edit mode with TmyDatasource and NOT with standard Datasource

Post by [email protected] » Mon 10 Dec 2018 12:09

hi

I have a data module and a form.

DATAMODULE:
- contains the query component (TmyQuery from DevArt)
- TmyQuery contains NO events

FORM:
- contains a TmyDatasource (DevArt) with TmyDatasource.AutoEdit = False
- contains a DBGrid and everything is neatly linked

When I run it, the first record always comes in EDIT mode and is visible
to the icon in the dbgrid and i check this when i close the form. Also when you
navigate through the database every records comes in edit mode.

When i use the standard Delphi Datasource component and connect to
the same TmyQuery this behavior does NOT happen and records are
NOT in edit mode.

Regards Peter

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DBgrid in edit mode with TmyDatasource and NOT with standard Datasource

Post by ViktorV » Mon 10 Dec 2018 13:39

Unfortunately, we could not reproduce the issue.
In order for us to be able to give you a detailed answer, we need to have a sample demonstrating the specified behavior. Therefore, please compose a small sample demonstrating the described behavior and send it to using the contact form https://www.devart.com/company/contactform.html.
Also specify the version of the MySQL server, MyDAC and IDE that you are using.

Post Reply