Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridColumnStyles.OnGetHeaderStyle Event

In This Article

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

#Declaration

Delphi
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