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

TdxListViewEditedEvent Type

The procedural type for list item caption change handlers.

#Declaration

Delphi
TdxListViewEditedEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem; var S: string) of object;

#Parameters

Name Type Description
Sender TdxCustomListView

The List View control that raised the event.

AItem TdxListItem

The target list item.

S string

The edited item caption.

#Remarks

The following OnEdited event handler discards changes made in an in-place editor if a user assigns an empty string to an item caption:

procedure TForm1.dxListViewControl1Edited(Sender: TdxCustomListView;
  AItem: TdxListItem; var S: string);
begin
  if S = '' then
    S := AItem.Caption;
end;

The List View’s OnEdited event references the TdxListViewEditedEvent type.

See Also