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

Card Caption

A card‘s caption displays information that identifies the card and also contains a button used to collapse and expand the card.

Display Custom Images within Card Captions - WinForms Grid, Layout View

The following table lists the main properties that affect element appearance.

Appearance

The LayoutViewAppearances.FocusedCardCaption and LayoutViewAppearances.CardCaption properties provide appearance settings depending upon whether or not the card is focused.

The LayoutView.CustomCardStyle event.

Custom Drawing

The LayoutView.CustomDrawCardCaption event.

Contents

The pattern string to display within the caption is specified by the LayoutView.CardCaptionFormat property. To get the actual text, use the LayoutView.GetCardCaption method.

The LayoutView.CustomCardCaptionImage event can be handled to display custom images within card captions.

Visibility

LayoutViewOptionsView.ShowCardCaption

See Also