Occurs before a column header is drawn allowing the developer to create a custom header.
Syntax
Event Data
The event handler receives an argument of type UserDrawnHeaderEventArgs containing data related to this event. The following UserDrawnHeaderEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| ContactID | The ContactID of the current header. |
| Date | The date of the current header. |
| Graphics | The Graphics class for the current header. |
| LocationID | The LocationID of the current header. |
| MouseOver | Indicates if the mouse is over the current header if you wish to customize the hottrack or fonts. |
| PaintBackground | Determines if the header background is to be drawn automatically or by the user. |
| PaintText | Determines if the header text is to be drawn automatically or by the user. |
| Rect | The rectangle indicating the size of the header for use with the Graphics property. |
| TaskID | The TaskID of the current header. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also