Occurs immediately after closing a connection.
property AfterDisconnect: TNotifyEvent;
Write a AfterDisconnect event handler to take application-specific actions immediately after the connection component closes a database connection.
When the Disconnect method is called or the Connected property is set to False, a BeforeDisconnect event is generated, the connection is closed, and then an AfterDisconnect event is generated. In the AfterDisconnect event handler, the Connected property value is False.