locked
GridView and always visible headers RRS feed

  • Question

  • 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.
    Monday, October 16, 2006 3:09 PM

Answers

  • 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.

    Tuesday, October 17, 2006 11:37 AM

All replies

  • 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?

    Monday, October 16, 2006 7:00 PM
  • 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? 
    Monday, October 16, 2006 7:51 PM
  • 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.

    Tuesday, October 17, 2006 11:37 AM