Vcl.ComCtrls.TCustomListView.OwnerDataFetch

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function OwnerDataFetch(Item: TListItem; Request: TItemRequest): Boolean; virtual;

C++

virtual bool __fastcall OwnerDataFetch(TListItem* Item, TItemRequest Request);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Customizes a list view item before it is displayed.

OwnerDataFetch initializes an item before it is drawn in a list view control. The Item parameter specifies the item that is about to be drawn. The Request parameter indicates the type of information that should be initialized. OwnerDataFetch returns true if the specified item should be displayed, and false if the item should not be drawn.

As implemented in TCustomListView, OwnerDataFetch generates an OnData event, passing the Item parameter to the event handler and ignoring the Request parameter.

OwnerDataFetch is called only if OwnerData is true.

See Also