Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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
Set the DataGridView.ColumnHeadersVisible property to false.
dataGridView1.ColumnHeadersVisible = FalsedataGridView1.ColumnHeadersVisible = false;
Compiling the Code
This example requires:
A DataGridView control named dataGridView1.
References to the System and System.Windows.Forms assemblies.
See Also
Reference
DataGridView.ColumnHeadersVisible
Other Resources
Basic Column, Row, and Cell Features in the Windows Forms DataGridView Control