advStringGrid - Filtered-out rows appended below

Hello again all,

TadvStringGrid version

I am bringing a D7 program up to D2010, under W8

I fill a TadvStringGrid from an SQL script and then allow the user to sort it by clicking on (multiple with Shift) column titles in the1st header row, and filter out rows by adding filters for each column in the 2nd header row.

I'm struggling with filtering, as there appears to be a strange phenomenon of the filter bringing the correct rows to the top of the grid in the correct order but adding all the others below in default order.

I just wondered if anyone else has this kind of a problem? The filtering worked fine several years ago, but I have perhaps upset my own logic in the various modifications required elsewhere going from D7 to D2010.

Thanks for any ideas.

Chris Erdal