I have Master Detail grids, both on one TabSheet
I use the technique you suggested in forum post "Error when sorting a Detail from Master Detail Relationship" but without the timer; the detail is closed and then reopened with revised SQL.
I call this MD function from
- MasterGridDataScrolled
- MasterGridFilterChanged
- MasterGridRefreshData
I find the detail follows the master well but I have noticed two exceptions.
1. Ctrl+Home (and Ctrl+End) move to the top/bottom of the master, but the detail does not change.
2. rDBAction.Find. I have rDBAction.pmDBAction assigned to the master grid's PopupMenu property. At runtime I find a record in the Dialog. The master moves to the found record but again, the detail does not change.
In both situations it is necessary to select a different row in the master (with mouse or arrow key) and then move the master back to the desired record to force the detail to synchronise correctly. I looked, but could find a Demo that implements master-detail to check some more.
Is this expected behaviour, or have I missed something?
Please let me know if more information required.
Many thanks, Andy.
Delphi 10.4 CE, dbGo
SQL Server Express