System.Windows.Forms.ListView.DrawColumnHeader Event

Occurs when the details view of a System.Windows.Forms.ListView is drawn and the ListView.OwnerDraw property is set to true.

Syntax

public event DrawListViewColumnHeaderEventHandler DrawColumnHeader

Remarks

This event lets you customize the appearance of a System.Windows.Forms.ListView control using owner drawing. It is raised only when the ListView.OwnerDraw property is set to true and the ListView.View property is set to View.Details. This event can occur for each column header in the control. For more information on owner drawing, see the ListView.OwnerDraw property reference topic.

For more information about handling events, see Consuming Events.

Requirements

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