Skip to main content

TcxCustomGridTableItemStyles.OnGetContentStyle Event

Occurs whenever an item cell should be redrawn.

Declaration

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