Vcl.ComCtrls.TListView.OnData

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnData: TLVOwnerDataEvent read FOnData write FOnData;

C++

__property OnData;

Properties

Type Visibility Source Unit Parent
event published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TListView

Description

Occurs immediately before an item is displayed in the list view control.

Vcl.ComCtrls.TListView.OnData inherits from Vcl.ComCtrls.TCustomListView.OnData. All content below this line refers to Vcl.ComCtrls.TCustomListView.OnData.

Occurs immediately before an item is displayed in the list view control.

Use OnData to customize an item before it is displayed in the list view control. Set the properties of the list item in the event handler so that they appear correctly when the item is drawn. The item currently retrieved is identified by the value of its Index field representing the input value of the method. When using a virtual list view of TListView, the OnData event gives a pointer to the specific item that is displayed. This pointer is used to specify the item's characteristics as output of the method.

OnData occurs only if OwnerData is True.

OnData is an event handler of type Vcl.ComCtrls.TLVOwnerDataEvent.

See Also