Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomTreeView.OnDeletion Event

In This Article

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

#Declaration

Delphi
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