Skip to main content
A newer version of this page is available. .

TdxCustomTreeView.OnDeletion Event

Allows you to perform specific actions every time a node is deleted.

Declaration

property OnDeletion: TdxTreeViewNodeEvent read; write;

Remarks

This event occurs every time a tree node is deleted from the Tree View.

The following OnDeletion event handler clears the control’s selection when a node is deleted:

procedure TForm1.dxTreeViewControl1Deletion(Sender: TdxCustomTreeView;
  ANode: TdxTreeViewNode);
begin
    Sender.ClearSelection;
end; 

Refer to the TdxTreeViewNodeEvent type description for information on available options.

See Also