Hi, i’am in trouble again…
I have created ClientDataModule with DA wizard and there is three tables.
With two tables everything works ok with TStringGrid, can insert and edit records and they get updated to database. But with one table using TStringGrid, changes are added to TDAMemDataTable but after calling ApplyUpdates new and changed records are not updated to database.
Have added to TDAMemDataTables AfterApplyUpdates method ShowMessage(’’) and it shows, so ApplyUpdates() gets triggered.
Any idea where to start looking solution to problem?
EDIT: I can get Design-Time Data with no problems and when calling ApplyUpdates() method no errors are raised. New and edited data just don’t get updated to DB.
EDIT2: Just noticed that with new data added to TStringGrid TDAMemDataTables OnAfterPost event gets triggered when using TBindNavigators save button. But when pressing after that Refresh button at TBindNavigator, newly added record disappears from grid. So new record is not getting saved to TDAMemDataTable?