Home > Back-end >  Delphi5 TDBGrid display of data is the last time the results of the query
Delphi5 TDBGrid display of data is the last time the results of the query

Time:10-12

TDBGrid binding a datasource, a DataSet, the datasource binding, but sometimes although SQL statements from different results when the data query, but TDBGrid display is still the last time the DataSet, there is no change,
Also use the close of the DataSet before each use; The open method,
To solve the,

CodePudding user response:

Or should be paid to your personal reason,
Adoquery1. Close;
Adoquery1. SQL. The clear;//remove the original statement,
Adoquery1. SQL. Add (' select * from... ');
Adoquery1. Open;
  • Related