ListView::DrawColumnHeader Event
.NET Framework (current version)
Namespace:
System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return to top
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
This event lets you customize the appearance of a ListView control using owner drawing. It is raised only when the OwnerDraw property is set to true and the 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 OwnerDraw property reference topic.
For more information about handling events, see Handling and Raising Events.
The following code example provides an implementation of a DrawColumnHeader event handler. For the complete example, including the implementation of the DrawSubItem event handler, see the OwnerDraw reference topic.
.NET Framework
Available since 2.0
Available since 2.0
Show: