Hi Peter,
Thanks for the reply. It seems that my issue is resolved. I was setting couple of properties of the grid twice. The issue could have been due to that.