In ASP.NET Gridviews generate a table which generates a parent div container. This can break CSS layouts since there is no way to attach styles to the generated div. Is ther
You can put it inside of an asp:Panel and set the Visible property on the panel to false if the table is empty.