How to Add a Locked Header Row to an ASP.NET GridView Control

The GridView control is often used to display tabular data, much like an Excel spreadsheet. However, unlike Excel, the GridView control doesn’t have any automatic way of locking the header row so that it doesn’t scroll out of view. Check out this example of a GridView within a DIV with the overflow-Y property set to…

7