BCGControlBar Library for .NET
DrawGridColumnHeader Event




Raised when it's required to draw a column header.
Syntax
'Declaration
 
Public Event DrawGridColumnHeader As DrawGridColumnHeaderEventHandler
'Usage
 
Dim instance As GridControl
Dim handler As DrawGridColumnHeaderEventHandler
 
AddHandler instance.DrawGridColumnHeader, handler
public event DrawGridColumnHeaderEventHandler DrawGridColumnHeader
public: __event DrawGridColumnHeaderEventHandler* DrawGridColumnHeader
public:
event DrawGridColumnHeaderEventHandler^ DrawGridColumnHeader
Event Data

The event handler receives an argument of type DrawGridColumnHeaderEventArgs containing data related to this event. The following DrawGridColumnHeaderEventArgs properties provide information specific to this event.

PropertyDescription
Bounds Gets column header bounding rectange.
CalcOnly Get the value that the event handler should calculate content size only.
Column Get the column whose header is drawn.
ColumnImage Gets an image to be displayed on the header.
ContentSize Gets or sets the header content size.
FirstVisibleColumn Gets a value that indicates whether the column is the currently first visible column in the visible grid area.
Graphics Gets the Graphics context.
Handled (Inherited from System.ComponentModel.HandledEventArgs) 
Highlighted Gets a value that specifies whether the column header is highlighted.
IsGroupArea Gets a value that specifies whether a column header is displayed in Group By box.
MarkSelection Specifies if the column header "marks" selection.
ShowSelectedState Specifies whether to show selection state.
SortMarker ID of sort marker.
Text Header's text.
VisualStyle Header's visual style.
Remarks
Handle this event to customize drawing of grid column headers. Set DrawGridColumnHeaderEventArgs.Handled to prevent further processing.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback