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

TreeList.CustomDrawBandHeader Event

Provides the capability to custom paint band headers.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DXCategory("CustomDraw")]
public event CustomDrawBandHeaderEventHandler CustomDrawBandHeader

#Event Data

The CustomDrawBandHeader event's data class is DevExpress.XtraTreeList.CustomDrawBandHeaderEventArgs.

#Remarks

The CustomDrawBandHeader event fires when a band header is about to be painted. The event’s parameters provide you all the information needed to paint a band header.

See the Custom Drawing topic for information on using custom draw events.

Note

The CustomDraw events are designed to modify elements appearances only. Do not modify the control’s layout or cell values when handling these events, since this can lead to unexpected misbehaviors.

See Also