Hi

Sorry about the delayed response.  Without knowing your system and why you cant guaranty an item is deleted from the TList at the same time as the ListView an option might be to use the listview in ownerdata mode so that the listview is populated from the TList.  Might be a bit of work to recode but as a bonus the Listview will work much, much faster with large datasets.

Thanks
Rob

    
On 31/01/2011 4:24 p.m., Ross Levis wrote:

I’m storing some TListItem’s in a TList.  Some of these items could be removed from the listview at some stage.  I know the items should be removed from the TList when removed from the listview, but don’t ask.

 

Is there a simple method to determine if a listitem reference is still valid and exists, or do I need to use listview.items.indexof which could be slow.

 

Cheers.

_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe


No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3412 - Release Date: 01/30/11


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to