I try to filter a huge amount of rows (about 380,000 rows). I use a progressbar to show that the application ist still working, but the progress slows down during the process and stops at about 50 %
What I do to filter the grid ist the following:
CODE
FOR i := 0 TO sgDaten.RowCount - 1
DO BEGIN
IF sgDaten.Cells[AktSpalte,i] = sFilter
THEN sgDaten.RowVisible[i] := TRUE
ELSE sgDaten.RowVisible[i] := FALSE;
PercentBar.Progress := i;
END;
DO BEGIN
IF sgDaten.Cells[AktSpalte,i] = sFilter
THEN sgDaten.RowVisible[i] := TRUE
ELSE sgDaten.RowVisible[i] := FALSE;
PercentBar.Progress := i;
END;
Is there an explanation for this slow down or is there a better way of filtering ?