vcl-dxlistview-547dfd55.md
The procedural type for list item action handlers.
TdxListViewItemEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem) of object;
| Name | Type | Description |
|---|---|---|
| Sender | TdxCustomListView |
The List View control that raised the event.
| | AItem | TdxListItem |
The target list item.
|
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;
void __fastcall TForm1::dxListViewControl1Deletion(TdxCustomListView *Sender,
TdxListItem *AItem)
{
Sender->ClearSelection();
}
The List View’s OnInsert and OnDeletion events reference the TdxListViewItemEvent type.
See Also