Hi Lunatic. Thank you very much. I was debugging it for awhile till i found out the solution. You are correct, when i pass e.graphics to the DrawGrid function everything function perfectly.

Thank you for your great effort!