[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Data Editing
    [Expand]Data Presentation
    [Collapse]Appearances and Look And Feel
     [Expand]Alpha Blending
     [Collapse]Custom Drawing
       Custom Draw Scenarios
       List of Custom Draw Events
       Manual Invalidation
      Skins and LookAndFeel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

List of Custom Draw Events

You can handle custom draw events provided by the TreeList to paint the control's elements manually, or change the way the elements are painted by default.

Custom draw events are raised before tree list elements are painted. Each custom draw event handler receives a CustomDrawEventArgs descendant as a parameter whose properties specify the bounds of an element, the appearance settings used to paint the element, etc.


Custom painting and alpha blending features are not applied to the printed and exported versions of the Tree List.

The following table lists the custom draw events provided by the Tree List control.

Custom Draw Event Description
TreeList.CustomDrawColumnHeader Enables the column headers and Column Button to be custom painted.
TreeList.CustomDrawEmptyArea Enables the Empty Area to be custom painted.
TreeList.CustomDrawFooter Enables the footer panel to be custom painted.
TreeList.CustomDrawFooterCell Enables the footer cells to be custom painted.
TreeList.CustomDrawNodeButton Enables the node's Expand Button to be custom painted.
TreeList.CustomDrawNodeCell Enables the data cells to be custom painted.
TreeList.CustomDrawNodeImages Enables the node images to be custom painted.
TreeList.CustomDrawNodeIndent Enables Node Indents to be custom painted.
TreeList.CustomDrawNodeIndicator Enables the indicator cells to be custom painted.
TreeList.CustomDrawNodePreview Enables the node's preview section to be custom painted.
TreeList.CustomDrawRowFooter Enables the Group Footer to be custom painted.
TreeList.CustomDrawRowFooterCell Enables the footer cells to be custom painted.

Each event also provides parameters that contain additional information that is specific to the element being painted. For example, when a summary footer cell is painted, the event parameter provides properties that allow the owning column, the type of applied summary and the display value to be obtained.

For information on how to use custom draw events, see Custom Draw Scenarios.

Expanded See Also

Is this topic helpful?​​​​​​​