ListView::DrawColumnHeader Event


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

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

event DrawListViewColumnHeaderEventHandler^ DrawColumnHeader {
	void add(DrawListViewColumnHeaderEventHandler^ value);
	void remove(DrawListViewColumnHeaderEventHandler^ value);

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.

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

.NET Framework
Available since 2.0
Return to top