Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Delphi: Общие вопросы > Сортировка в listview


Автор: Гость_Konstantin 19.4.2005, 13:21
Удачного дня всем!
Подскажите как осуществить сортировку в listview. Данный элемент содержит три колонки - одна из них типа Date. Необходима отсортировать по данной колонке

Автор: _hunter 19.4.2005, 14:56
читаем справку:
SortType
Description

Set SortType to specify the order of items in the list. If SortType is not stNone, the list items in the Items property are automatically sorted. Once a list view is sorted, the original order is lost. That is, setting the SortType back to stNone will not restore the original order of items.

Note: If SortType is stData or stBoth, provide an OnCompare event handler to compare data values.
Note: If the list view uses work areas, sorting items only compares each item to the other items in its work area.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)