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

LayoutView.CustomDrawCardCaption Event

Enables card captions to be custom painted.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v19.1.dll


public event LayoutViewCustomDrawCardCaptionEventHandler CustomDrawCardCaption

Event Data

The CustomDrawCardCaption event's data class is DevExpress.XtraGrid.Views.Layout.Events.LayoutViewCustomDrawCardCaptionEventArgs.


The CustomDrawCardCaption event is raised each time a card caption needs to be repainted, and enables you to paint it manually. See the Custom Painting Basics and Custom Painting Scenarios topics for information on using custom draw events.

If you need to paint caption text as specified by the LayoutView.CardCaptionFormat property, use the LayoutView.GetCardCaption method to obtain the formatted text.


Never change cell values or modify the control’s layout on this event, or any other event designed to tune the control’s appearance. Any action that causes a layout update can cause the control to malfunction.

See Also