Although the tutorial is in VB.NET, the html portion that you could potentially use as a solution should give you at least one idea on how to do this.
Tutorial...
[Edit]
Based on the enhancement to your question, you just need to use the "overflow: auto;" attribute in the div surrounding your grid. This will automatically create horizontal and vertical scrollbars.
[/Edit]