Skip to main content

TdxListViewSelectItemEvent Type

The procedural type for list item selection handlers.

Declaration

TdxListViewSelectItemEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem; ASelected: Boolean) of object;

Parameters

Name Type Description
Sender TdxCustomListView

The List View control that raised the event.

AItem TdxListItem

The target list item.

ASelected Boolean

The item’s selection state.

Remarks

The following OnSelectItem event handler prohibits a user from selecting an item:

procedure TForm1.dxListViewControl1SelectItem(Sender: TdxCustomListView;
  AItem: TdxListItem; ASelected: Boolean);
begin
  if ASelected then
    AItem.Selected := False;
end;

The List View’s OnSelectItem event references the TdxListViewSelectItemEvent type.

See Also