System.Windows.Forms.ListView.ColumnClick Event

Occurs when the user clicks a column header within the list view control.


public event ColumnClickEventHandler ColumnClick


The ListView.ColumnClick event occurs when the user clicks one of the column headers in a details view of the items in a System.Windows.Forms.ListView control (when the ListView.View property is set to View.Details). The ListView.ColumnClick event is typically handled to sort the items in the System.Windows.Forms.ListView using the clicked column as the column to sort by.

For more information about handling events, see Consuming Events.


Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0,