Have you added anything else to the page, try the page with just the div and datagrid. If that works try adding the other controls one at a time, it could be one of the controls above the div not terminated.
you should ask this in the ASP.NET forum
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.