Skip to main content

TdxListViewItemEvent Type

The procedural type for list item action handlers.

Declaration

TdxListViewItemEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem) of object;

Parameters

Name Type Description
Sender TdxCustomListView

The List View control that raised the event.

AItem TdxListItem

The target list item.

Remarks

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

procedure TForm1.dxListViewControl1Deletion(Sender: TdxCustomListView;
  AItem: TdxListItem);
begin
    Sender.ClearSelection;
end; 

The List View’s OnInsert and OnDeletion events reference the TdxListViewItemEvent type.

See Also