How get column Headers to automatically move down as user scrolls down datagrid
Posted on 2006-06-21
Using Windows Forms, .NET 1.1, VS 2003
I have a custom datagrid control inherited from a datagrid. I am using a dataTable to populate the datagrid. I have used the first row of my dataTable for the column headers and made the columnheaders of the datagrid invisible by setting:
grid.ColumnHeadersVisible = False
But, as the user scrolls down they won't see the headers. How can I write code to make the headers move down as the user scrolls down?