Skip to main content

TdxListViewEditedEvent Type

The procedural type for list item caption change handlers.

Declaration

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