RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.OwnerDataHint Method

Specifies a range of items that might be fetched.

Pascal
function OwnerDataHint(StartIndex: Integer; EndIndex: Integer): Boolean; virtual;
C++
virtual __fastcall Boolean OwnerDataHint(int StartIndex, int EndIndex);

Override OwnerDataHint in a derived class to customize a range of items before OwnerDataFetch is called on them. 

This method of customizing items is more efficient than individually updating items in the OwnerDataFetch method. However, the range of items does not always match what is handled by the OwnerDataFetch method; therefore, you must be prepared to update individual items in the OwnerDataFetch method as well. 

StartIndex is the index of the first item that might be fetched. 

EndIndex is the index of the last item that might be fetched. 

OwnerDataHint is called only if OwnerData is true. 

 

OnDataHint 

OwnerDataFetch 

OwnerData

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!