vcl-dxlistview-89b88e9b.md
The procedural type for list item caption change handlers.
TdxListViewEditedEvent = procedure(Sender: TdxCustomListView; AItem: TdxListItem; var S: string) of object;
| 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.
|
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;
void __fastcall TForm1::dxTreeViewControl1Edited(TdxCustomListView *Sender,
TdxListItem *AItem, UnicodeText &S)
{
if (S == "")
S = AItem->Caption;
}
The List View’s OnEdited event references the TdxListViewEditedEvent type.
See Also