What you are saying is right and it should behave in the same manner but its not happening.
If you want I can give you a sample code to reproduce the issue.
First of all thank you for replying to my query.
But I have got a problem with what you have mentioned.In my case I am having 4-5 grid. So in that case how I am supposed to manage the same.