Skip to main content

TcxGridColumnStyles.OnGetHeaderStyle Event

Occurs every time the column header is about to be drawn.

Declaration

property OnGetHeaderStyle: TcxGridGetHeaderStyleEvent read; write;

Remarks

The style returned by the column’s Styles.OnGetHeaderStyle event overrides the default style for the columns header which is stored in the column’s Styles.Header property. This in turn overrides any style returned from the View’s Styles.OnGetHeaderStyle event which in turn overrides the style stored in the View’s Styles.Header property.

To associate a new style with this column you need to create a TcxStyle object instance, adjust its properties and return in the AStyle parameter. The column containing the header region and the View containing the column are specified by the Sender and AColumn parameters respectively.

The View’s Styles.Header and Styles.OnGetHeaderStyle members allow you to define the default styles for a header panel for all columns.

See Also