dbicList Send comments on this topic.
Developing with dbicList - User Drawn Column Header.

Glossary Item Box

User Drawn Column Header

A User Drawn Column Header allows the developer to take over complete control of the presentation of any or all of the column headers in the List to provide an alternate presentation to that available by default in the control.

The UserDrawnColumnHeader event is fired before a column header is painted. The event handler receives an argument of type UserDrawnColumnHeaderEventArgs containing the following data related to this event:

·        e.ColumnIndex (of type Integer):  The zero-based index of the dbiColumnItem where the header is being drawn.

·        e.ColumnItem (of type Dbi.WinControl.dbiColumnItem):  The dbiColumnItem where the header is being drawn.

·        e.Graphics(of type System.Drawing.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.

·        e.PaintHeader(of type Boolean):   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.

·        e.Rect (of type System.Drawing.Rectangle):   A rectangle representing the area being painted in the control.

·        e.Status(of type Dbi.WinControl.enumColHeaderStatus):    Determines the current status of the header column in the display.