please help;Have you committed your transaction before reloading your data?
I have tried to reload data from database after adding or deleting or updating data but no use. I have tried these codes:
1-
sqlquery.close;
sqlquery.open;
2-
sqlquery.sql.clear;
sqlquery.sql.text:='select * from table';
sqlquery.open;
3-
dbgrid.datasource.dataset.refresh;
4-
sqlquery.active:=false;
sqlquery.active:=true;
these all codes not working and I must close the app and run it again to reload the new data.
Have you committed your transaction before reloading your data?of course i have committed it.
try tihsI haven't used datamodule.
procedure TDataModule1.NametableAfterPost(DataSet: TDataSet); begin Nametable.Refresh; end;
try tihsI haven't used datamodule.
procedure TDataModule1.NametableAfterPost(DataSet: TDataSet); begin Nametable.Refresh; end;
Please, upload a sample project with sample data so we can help you better.QuoteHave you committed your transaction before reloading your data?of course i have committed it.
try tihsI haven't used datamodule.
procedure TDataModule1.NametableAfterPost(DataSet: TDataSet); begin Nametable.Refresh; end;