TDBAdvGrid does not do custom sort

Version of TDBAdvGrid is 2.3.0.3

When you define custom sort for the grid, it calls de function OnCustomCompare but allways send the first string str1 as null.
 
¿Any ideas?
 
Thanks.

Ok. PageMode=true was the problem. 

 
setting to false solves the issue but Why it calls OnCustomCompare with str1 as null, but not str2?
 
Best Regards. 

I'd need to know what data is in the grid.  Do you mean an empty string instead of a null?