Вниз
Скачать: CL | DM;

Listview   Найти похожие ветки 

 
Maksss   (2003-06-25 13:47) [0]

как сделать сортировку в листвиеве не по первой колонке, а по второй и т.д.


 
Poirot ©   (2003-06-25 13:56) [1]

OnCompare + F1 - там всё описано!!!


 
dataMaster ©   (2003-06-25 13:58) [2]

function CustomStringSortProc(Item1, Item2: TListItem; ParamSort: integer): integer; stdcall;
begin
result:=0;
if ParamSort=0 then
if (Item1.Caption)>(Item2.Caption) then Result :=1 else
if (Item1.Caption)<(Item2.Caption) then Result :=-1 else
else
if (Item1.SubItems[ParamSort-1])>(Item2.SubItems[ParamSort-1]) then Result :=1 else
if (Item1.SubItems[ParamSort-1])<(Item2.SubItems[ParamSort-1]) then Result :=-1;
end;

Использовать:
ListView1.CustomSort(@CustomStringSortProc, ColumnIndex);


 
Maksss   (2003-06-25 14:37) [3]

пасибо



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.01 c
11-20027
Alexander
2002-10-31 13:55
2003.07.07
Вопрос по KOLLabel: у меня она лежит на панели с выравниванием


1-20147
lightix
2003-06-24 16:18
2003.07.07
QReport - как программно сменить принтер?


14-20294
Vlad Oshin
2003-06-19 07:48
2003.07.07
какая программа периодически создает каталог с: KPCMS


7-20329
login13
2003-04-25 15:45
2003.07.07
Работа с разрешением монитора


14-20244
Sergey128
2003-06-19 17:16
2003.07.07
dll-ки




   Наверх