ok, the latest script seems to solve the problem.... Thanks a lot.

Now, I will open the next problem with cwebgrid in a different thread.