Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Collapse]Feature Center
    [Expand]Data Binding
    [Expand]Nodes
    [Expand]Data Editing
    [Expand]Data Representation
    [Expand]Sorting
    [Expand]Filtering
    [Expand]Summaries
    [Collapse]Appearances and Look And Feel
     [Expand]Alpha Blending
     [Collapse]Appearances
       Conditional Formatting
       Customizing the Appearance of Individual Cells
       Customizing the Appearance of TreeList Elements
       Customizing the Appearances of Columns
     [Expand]Custom Drawing
      Skins and LookAndFeel
    [Expand]Focus, Selection and Navigation
     Formatting Cell Values
    [Expand]Miscellaneous
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End User Capabilities
   [Expand]Member Tables
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap 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]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Customizing the Appearance of TreeList Elements

Expanded Customizing the Appearance of TreeList Elements

All DevExpress .NET Windows Forms controls use the Appearances mechanism to customize their look and feel. The controls provide properties that allow you to customize the appearance of various control elements in a centralized way. In addition, there are properties that allow you to customize the appearance of individual control elements, overriding the default appearance.

The Tree List holds a collection of appearances that are used to paint its elements (cells, column headers, summary, etc.). This collection can be accessed via the TreeList.Appearance property:

These appearances can also be accessed and customized at design time using the Appearances page of the Tree List Designer. This page is shown in the image below.

The appearance settings provided by the TreeList.Appearance property define default styles for columns and rows. To override these default styles for individual columns, use the appearance settings provided by TreeListColumn objects. See Customizing the Appearances of Columns.

To override the default appearance for individual cells, use specific events. See Customizing the Appearance of Individual Cells to learn more.

Expanded Example

The following example changes the appearance of odd rows. The corresponding appearance property is accessed via the TreeList.Appearance property.

The image below shows the result.

How would you rate this topic?​​​​​​​