Skip to main content

CardCaptionCustomDrawEventArgs.CardCaption Property

Gets or sets the current card’s caption.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v24.1.dll

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


public string CardCaption { get; set; }

Property Value

Type Description

A string that specifies the card’s caption.


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