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

TcxCustomGridTableItemStyles.OnGetContentStyle Event

In This Article

Occurs whenever an item cell should be redrawn.

#Declaration

Delphi
property OnGetContentStyle: TcxGridGetCellStyleEvent read; write;

#Remarks

You can handle the OnGetContentStyle event to modify the style for individual item cells. This event occurs every time it is necessary to redraw an item cell of the grid record defined by the ARecord parameter. The item is specified by the AItem parameter. Returning the style via the AStyle parameter overrides the style for the content defined by the View’s Styles.Content property and the item’s Styles.Content property by default.

The Sender parameter determines a View containing the item.

Note that the background bitmap cannot be assigned by handling the OnGetContentStyle event as this is relevant only to all the cells within the grid.

See Also