• Thanks a lot. it worked for me also.

    But still i am getting ------ one complete row after the header columns