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

TdxCustomGalleryControl.OnItemClick Event

In This Article

Occurs after an end-user has clicked an item.

#Declaration

Delphi
property OnItemClick: TdxGalleryControlItemEvent read; write;

#Remarks

Implement OnItemClick event handler to respond to item clicks. Sender specifies the gallery control and AItem specifies the clicked item.

procedure <Form>.<dxGalleryControl>ItemClick(Sender: TObject; AItem: TdxGalleryControlItem);
begin
  ShowMessage('You have chosen ' + AItem.Caption + ' item in the ' +
  AItem.Group.Caption + ' group.');
end;

OnItemClick will occur only if the item’s property Enabled is set to True.

See Also