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

CardCaptionCustomDrawEventArgs.CardCaption Property

Gets or sets the current card’s caption.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public string CardCaption { get; set; }

#Property Value

Type Description
String

A string that specifies the card’s caption.

#Remarks

The CardCaption property specifies the current card’s caption. By default, card captions are generated based on the pattern specified by the CardView.CardCaptionFormat property. You can handle the CardView.CustomDrawCardCaption event to dynamically customize card captions according to your requirements.

The CardView.CustomDrawCardCaption event allows you to modify card captions without the need to perform custom drawing manually. To do this, assign custom text to the CardCaption property and leave the event’s Handled parameter set to false. The grid will paint the specified card caption after the CardView.CustomDrawCardCaption event is completed.

See Also