How to: Hide Column Headers in the Windows Forms DataGridView Control

 

Sometimes you will want to display a DataGridView without column headers. In the DataGridView control, the ColumnHeadersVisible property value determines whether the column headers are displayed.

To hide the column headers

Compiling the Code

This example requires:

Show: