Page 1 of 1

sobCustom

Posted: 08 Jan 2014, 15:00
by sol
Hi,
As far as I understand this only gives me the oportunity to sort och the first column of the ListView.
Even if I pass another column as: SortItems sobCustom, , , , , col
In my _CompareItems i Always get the first column.
Is there a workaround so I can sort any column with sobCustom?

BR,
Sol

Re: sobCustom

Posted: 08 Jan 2014, 23:38
by TiKu
Well, the CompareItems event provides two items with all their sub-items. Just use firstItem.SubItems(x) to get the x-th sub-item of the first of both items. This way you can even compare the 2nd sub-item of the first item with the 4th sub-item of the second item.