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]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]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Customizing the Appearances of Columns

This topic describes how to customize the appearances of individual columns.

Expanded Customizing the Appearances of Columns

By default, the data cells within the Tree List are painted using the appearance settings provided by a Tree List (see the TreeList.Appearance property). This allows a common appearance for all the data cells, and for the cells displayed within the focused and selected nodes to be specified. Each column has a TreeListColumn.AppearanceCell property that allows you to override the default appearance settings for this particular column.

By default, a column's appearance settings only take priority over the Tree List's appearances which are used to paint the cells within the regular and selected nodes. However, they are overridden by the Tree List's appearances which are used to paint the focused node and focused cell. To give the column's appearance settings a higher priority, so that they override the control's appearances for the focused node and focused cell, set the AppearanceOptionsEx.HighPriority option of the TreeListColumn.AppearanceCell object to true.

Expanded Example

The following code specifies the appearance settings used to paint the Budget column's cells. The column's appearance is accessed via the TreeListColumn.AppearanceCell property.

The image below shows the result.

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