DBgrid in edit mode with TmyDatasource and NOT with standard Datasource
Posted: 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
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