DrawListViewColumnHeaderEventArgs::DrawDefault Property
Gets or sets a value indicating whether the column header should be drawn by the operating system instead of owner-drawn.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System::Booleantrue if the header should be drawn by the operating system; otherwise, false. The default is false.
Use this property when handling the ListView::DrawColumnHeader event for headers that you do not want to customize. If you set this property to true, the header will be drawn as usual.
The following code example demonstrates the use of this member. In the example, an event handler reports on the occurrence of the ListView::DrawColumnHeader event. This report helps you to learn when the event occurs and can assist you in debugging.
To run the example code, paste it into a project that contains an instance of type ListView named ListView1. Then ensure that the event handler is associated with the ListView::DrawColumnHeader event.
Available since 2.0