Event fired before a column header is drawn, allowing the developer to customize the display.
Syntax
Event Data
The event handler receives an argument of type UserDrawnColumnHeaderEventArgs containing data related to this event. The following UserDrawnColumnHeaderEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| ColumnIndex | The zero-based index of the dbiColumnItem where the header is being drawn. |
| ColumnItem | The dbiColumnItem where the header is being drawn. |
| Graphics | A handle to the graphics object responsible for drawing the column header. Through the e.Graphics object the developer has access to the GDI+ methods for drawing objects to a display device. |
| PaintHeader | Determines if the internal routines of the control should draw the column header. When the PaintHeader property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the column header. |
| Rect | A rectangle representing the area being painted in the control. |
| Status | Determines the current status of the header column in the display. |
Requirements
Target Platforms: Current Windows operating system with .NET 8.
See Also