Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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
ClickableThe column headers function like buttons and can carry out an action, such as sorting, when clicked.
NonclickableThe column headers do not respond to the click of a mouse.
NoneThe 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft