dbicList Send comments on this topic.
UserDrawnColumnHeader Event
See Also 
dbicBase Assembly > Dbi.WinControl Namespace > DbiListControl Class : UserDrawnColumnHeader Event

Event fired before a column header is drawn, allowing the developer to customize the display.

Syntax

Visual Basic (Declaration) 
Public Event UserDrawnColumnHeader As DbiListControl.EventUserDrawnColumnHeaderHandler
C# 
public event DbiListControl.EventUserDrawnColumnHeaderHandler UserDrawnColumnHeader

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.

PropertyDescription
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