API:Vcl.DBGrids.TGridDataLink.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TGridDataLink();

Properties

Type Visibility Source Unit Parent
destructor public
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TGridDataLink

Description

Destroys an instance of TDataLink.

Vcl.DBGrids.TGridDataLink.Destroy inherits from Data.DB.TDataLink.Destroy. All content below this line refers to Data.DB.TDataLink.Destroy.

Destroys an instance of TDataLink.

The TDataLink object should be destroyed in the destructor of its Owner, where that Owner calls Create from its constructor.

Do not call Destroy directly in an application. Instead, call the Free method. Free checks that the TDataLink reference is not nil and only then calls Destroy.

Before calling the inherited destructor, Destroy removes any reference to the TDataLink from the data source object.

See Also