Thanks, but I may not have been clear enough as neither of those responses addresses the problem.
On the Main Form named "frmMain," and I have a secondary Form named "frmDatabase"
I have an Edit on frmDatabase.
I have a DBGrid on frmDatabase set with Visible:=False at runtime.
When the user clicks the Edit the Grid is made visible using Edit.OnEnter.
When the user clicks an item within the grid, the grid is then hidden using the OnCellClick and the selected Record data is displayed in the Edit.
All of that works as expected and intended.
But, when the grid is visible and I click anywhere on the underlying frmDatabase or frmMain, those clicks are not registered.
I have tried KeyPreview for the main form, OnMOuseDown/Up/Click etc., but nothing works.
I want he exact same process to happen as a Popup Menu. If you click outside a Popup Menu, but still within the underlying program or forms, the Menu closes. That's what I need the grid to do.