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.OnGetCaptionRowStyle Event

In This Article

Occurs when a caption row should be redrawn.

#Declaration

Delphi
property OnGetCaptionRowStyle: TcxGridGetCellStyleEvent read; write;

#Remarks

Handle the OnGetCaptionRowStyle event to override the default style of a caption row (a Card View row whose Kind property is set to rkCaption) for individual records. To set the default style for a caption row, use the CaptionRow attribute.

The ARecord parameter determines a record for which the event is generated. The Sender and AItem parameters define the View and an item (a Card View row) respectively.

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.

See Also