[EMAIL PROTECTED] wrote:
> I am using the ListView on a form and I want to sort the columns.  You 
> can do that by creating a ListViewItemCompare class driven from the 
> IComparer interface. However when I try to do so in Delphi Dot Net I 
> get and error that it does not know what the IComparer is. Do you know 
> how to do this in Delphi Dot Net?

It looks like you should use the ListView object's ListViewItemSorter 
property, in conjunction with the Sort property. ListViewItemSorter is a 
System.Collections.IComparer, which has a Compare method that takes two 
Objects and returns an Integer.

Write any class you want, and make sure it implements the IComparer 
interface. Then assign an instance of that class to the 
ListViewItemSorter property.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to