<div style="width: 200px; height: 100px; overflow: auto"> <asp:GridView ID="gvGrid" runat="server"/> </div>
Tuesday, September 29, 2009
Scrollbar on a GridView
An ASP.NET GridView control will keep expanding down the page as more data is added. What if you want to control its height though? You could using Paging. You can also add scrollbars using styles. Here is an example of how you do this: