Scroll To Top
Reader Level:
How do I

How to Create a Scrollable DataGrid?

By Mahesh Chand on Mar 29, 2007
This quick tip shows how to create a scrollable ASP.NET DataGrid.

Put your ASP.NET DataGrid control within the following <div> tag to make a DataGrid scrollable. You may want to change the height and width according to your requirements.

<div style="vertical-align top; height: 152px; overflow:auto;width:800px;">