Vcl.DBGrids.TCustomDBGrid.Notification

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Notification(AComponent: TComponent; Operation: TOperation); override;

C++

virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Description

Responds to notifications that components are about to be destroyed.

After calling the inherited method, Notification

Checks if the pop-up menu for any of its columns is going away, and if so, resets the PopupMenu property of the column object.

Checks if the data source is going away, and if so, sets the DataSource property to nil (Delphi) or NULL (C++).

Checks if any of the field components associated with its columns is going away, and if so, removes the column from the layout.

See Also