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

TcxGridCardViewRowStyles.OnGetCaptionStyle Event

In This Article

Occurs when repainting the caption region of a Card View row.

#Declaration

Delphi
property OnGetCaptionStyle: TcxGridGetCellStyleEvent read; write;

#Remarks

The OnGetCaptionStyle event occurs every time that the caption of a Card View row should be redrawn. You can handle this event to redefine the style of a caption for individual records identified by the ARecord parameter. The default style of a Card View row caption is set in the Caption property. To redefine the style, you need to create a TcxStyle object and return it via the AStyle parameter. You should not create the style in the event handler. Instead, use the style repository (the TcxStyleRepository component) to create individual styles.

The Sender and AItem parameters define a Card View and an item (a Card View row) respectively.

See Also