datagridview header row

mjd430

Member
Joined
Feb 28, 2007
Messages
6
Programming Experience
Beginner
Hello,

I have an application that loads a datagridview on app startup. The datagridview contains a header row. Is there any way for the header row to stay in place when you are scrolling the grid so that you always see the header row?

Thanks for the help!
 
The datagridview contains a header row.
Yes, that is true, and it also stays in place when you scroll the data rows. It is visible by default (ColumnHeadersVisible property). The text is the same as the column name by default, but you can set any text using HeaderText property of the column.

If you need additional 'header rows' you can freeze a data row by setting its Frozed property to True. DataGridViewRow.Frozen Property (System.Windows.Forms)
 
Back
Top