TcxGridCardViewRowStyles.OnGetCaptionRowStyle Event
Occurs when a caption row should be redrawn.
Declaration
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