MemTableEh1 DataDriver attribute set ADODataDriverEh1
ADODataDriverEh1 ProviderDataSet attribute set FDQuery2
FDQuery2 SQL is the SELECT * FROM t_ProductBom where ProductID=: ProductID
FDQuery2 MasterSource set the DataSource1
FDQuery2 MasterFields set the ProductID
Program is running, the display is always the first data, point the second data without refresh, how to set up automatic refresh
All of the Active set became True
CodePudding user response:
If events increase inside theprocedure TForm1. DBGridEh1CellClick (Column: TColumnEh);to refresh to refresh automatically
The begin
FDQuery2. Refresh;
MemTableEh1. Refresh;
end;
CodePudding user response:
Their needs solved again MemTableEh1 also to set up the MasterSource set MasterSource ProductID and MasterFields SettingsCodePudding user response:
You solve a bit fastCodePudding user response: