What's the right way to use MYSQL DAC

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mierlp
Posts: 29
Joined: Thu 26 Jan 2006 08:34
Location: Nederlands

What's the right way to use MYSQL DAC

Post by mierlp » Thu 26 Jan 2006 11:01

hi,

Something i'm doin wrong....

There's a MYSQL database and 1 table. On the form i put a :
- MyConnection,
- MyQuery
- MyTable
- dsDataset
- Standaard DBGrid
- Standaard DBEDit
- Standaard DBNavigator

Everything is connected...i think on the right way because
i can see the data an can CHANGE data. Appending a new
record creates in the DBGrid a new line. When i click in the
DBEDit the row will be ''deleted'' and i can't add new records.

Greetz PEter

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 26 Jan 2006 15:13

It can happen because of DBGrid.Options.dgCancelOnExit set to True. Try to setting it to False to avoid this behaviour.

Post Reply