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

TcxVerticalGridStyles.OnGetContentStyle Event

In This Article

Allows you to redefine the style settings of a row cell.

#Declaration

Delphi
property OnGetContentStyle: TcxvgOnGetContentStyleEvent read; write;

#Remarks

This event fires when painting row cells. You can handle this event to redefine the style settings of a particular row cell.

The Sender parameter specifies the vertical grid control that initiated the event.

The AEditProp parameter exposes the TcxCustomEditorRowProperties object whose interface provides information about the editor row.

The AFocused parameter specifies whether the current row cell is focused.

The ARecordIndex parameter returns the index of the corresponding record within the data controller. The parameter returns 0 for unbound grids (i.e. TcxVerticalGrid class).

The AStyle parameter represents the style to be applied to the current row cell. Note: you must assign an existing TcxStyle object to the AStyle parameter before using it.

Additionally, you can redefine the style settings of an individual category row and a particular row’s header by handling the OnGetCategoryStyle and OnGetHeaderStyle events respectively.

See Also