Back to Devexpress

TdxListViewItemEvent Type

vcl-dxlistview-547dfd55.md

latest1.2 KB
Original Source

TdxListViewItemEvent Type

The procedural type for list item action handlers.

Declaration

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

Parameters

NameTypeDescription
SenderTdxCustomListView

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:

delphi
procedure TForm1.dxListViewControl1Deletion(Sender: TdxCustomListView;
  AItem: TdxListItem);
begin
    Sender.ClearSelection;
end;
cpp
void __fastcall TForm1::dxListViewControl1Deletion(TdxCustomListView *Sender,
  TdxListItem *AItem)
{
  Sender->ClearSelection();
}

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

See Also

dxListView Unit