Back to Devexpress

LayoutView.CustomDrawCardCaption Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutview-7972da51.md

latest2.9 KB
Original Source

LayoutView.CustomDrawCardCaption Event

Enables card captions to be custom painted.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("CustomDraw")]
public event LayoutViewCustomDrawCardCaptionEventHandler CustomDrawCardCaption
vb
<DXCategory("CustomDraw")>
Public Event CustomDrawCardCaption As LayoutViewCustomDrawCardCaptionEventHandler

Event Data

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

Remarks

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.

Important

Do not change cell values, modify the control’s layout, or change the control’s object model in the events used for custom control painting. Actions that update the layout can cause the control to malfunction.

See Also

GetCardCaption(Int32)

CardCaption

FocusedCardCaption

Custom Painting

LayoutView Class

LayoutView Members

DevExpress.XtraGrid.Views.Layout Namespace