[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TCustomListView.OnEdited

Event handler signalled prior to updating a list item caption when it has been edited in the control.

## Declaration

Source position: comctrls.pp line 1612

`protected property TCustomListView.OnEdited : TLVEditedEvent read FOnEdited write FOnEdited;`

## Description

OnEdited is a TLVEditedEvent property with the event handler signalled when the caption for a list item has been updated using the editor for the control. It occurs prior to saving the value in the AValue argument to the TListItem instance, and allows the new value to be validated and optionally modified.

OnEdit is signalled from the DoEndEdit method when an overridden Edit method is not used in the class instance, and the event handler has been assigned. It occurs when the private HideEditor method is called for the control.

## See also

TCustomListView.DoEndEdit |  | Performs actions when editing has been completed for a list item.
TCustomListView.Edit |  | Signals OnEdited to validate the editor text, and updates the caption for the specified list item.