I have a master and content page.

When I add some text to the content page in the maincontent, the content's height is as high as the text that is in it.

But when I add a gridview to the maincontent, de content keeps the same size, with as consequence that the gridview is for more then 50% outside the content (and it's border), so this doesn't look really nice.

Is there anyway to solve this?