RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.OwnerDataFetch Method

Customizes a list view item before it is displayed.

Pascal
function OwnerDataFetch(Item: TListItem; Request: TItemRequest): Boolean; virtual;
C++
virtual __fastcall Boolean OwnerDataFetch(TListItem Item, TItemRequest Request);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!