Reader Level:
Article

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

</div>

Mahesh Chand

C# Corner founder, 10-times Microsoft MVP, technical author, and software 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 memb... Read more

COMMENT USING