Reader Level:

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;">


Mahesh Chand
Mahesh Chand

C# Corner founder, 11-times Microsoft MVP, technical author, and solutions architect. Mahesh authored his first book, A Programmer’s Guide to ADO.NET in C# with APress at the age of 25. C# Corner is a mem... Read more