GridView and always visible headers

I have a gridview that has many rows, it's a fixed size and will scroll vertically when the number of entries are too large for the area allotted to it. Is there a way to force the headers to remain at the top regardless of how far down the view you scroll The only other solution I can think of is putting my own labels in, but then I lose the sorting features.


Thanks in advance.


Answer this question

GridView and always visible headers

  • Mohamed Hussein Kotat

    This is VS 2005 final release and it is a DataGridView control, correct

    If I start a windows app, add a DGV control, define two columns, and populate (unbound) with enough rows to scroll, the column headers by default stay at the top of the grid as I scroll the rows up and down Is this not happening


  • Pankaj11

    your assumptions were correct

    It's not happening for me. the headers go away when scrolling down. Are you using div's at all or any other html stylings

  • AnnNeedsHelp

    Ok, something tells me you are working on a web page (asp) using the "GridView". I am working in a "windows application" using the "DataGridView". Because this is a "windows" forum, I thought you were referring to the latter. Perhaps you can try an ASP forum instead (http://forums.asp.net/thread/1405143.aspx).

    Good luck.


  • GridView and always visible headers