ColumnHeaderStyle Enumeration


Specifies the styles of the column headers in a ListView control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

type ColumnHeaderStyle

Member nameDescription

The column headers function like buttons and can carry out an action, such as sorting, when clicked.


The column headers do not respond to the click of a mouse.


The column header is not displayed in report view.

Use the members of this enumeration to set the value of the HeaderStyle property of the ListView control.

The following code example demonstrates using the ColumnHeaderStyle enumeration to set the ListView.HeaderStyle property of a ListView control. To run this example paste the following code in a form and call the InitializeListView method from the form's constructor or Load event handler.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top