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

TdxListViewSelectItemEvent Type

The procedural type for list item selection handlers.

#Declaration

Delphi
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