Skip to main content
A newer version of this page is available. .

Card Caption Row

Caption rows are non-editable card rows that are most commonly used for card identification. Caption rows remain visible when collapsing a card. If you are not using the card expanding feature, caption rows may be utilized to enhance data readability.

Caption Rows

Feature

Related Members

Availability

To turn a card row into a caption row, set the desired row’s Kind property to rkCaption.

Appearance

A common style for all caption rows in a View can be set using the View’s Styles.CaptionRow property. You can also specify styles for individual caption row’s using the Styles.CaptionRow property of card rows. If you need to provide different styles for caption rows displayed in different cards, handle the View’s OnGetCaptionRowStyle or a card row’s OnGetCaptionRowStyle event.

You can provide a background bitmap for caption rows using the View’s BackgroundBitmaps.CaptionRow property.

Custom Draw

The View’s OnCustomDrawCell or a card row’s OnCustomDrawCell event. The event’s AViewInfo parameter is of the TcxGridCardCaptionRowDataViewInfo type when a caption row’s data cell is about to be painted. When a caption row’s header is about to be painted, this parameter is of the TcxGridCardCaptionRowCaptionViewInfo type.