Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Conditional Formatting

 
Department
Location
Budget
Phone
CollapseCorporate HeadquartersMonterey$1,000,000.00(408) 555-1234
 CollapseSales and MarketingSan Francisco$22,000.00(415) 555-1234
   Field Office: CanadaToronto$500,000.00(416) 677-1000
   Field Office: East CoastBoston$500,000.00(617) 555-4234
  CollapsePacific Rim HeadquartersKuaui$600,000.00(808) 555-1234
    Field Office: SingaporeSingapore$300,000.00(606) 555-5486
    Field Office: JapanTokyo$500,000.00(707) 555-1526
   MarketingSan Francisco$1,500,000.00(415) 555-1234
  FinanceMonterey$40,000.00(408) 555-1234
 CollapseEngineeringMonterey$1,100,000.00(408) 555-1234
  CollapseConsumer Electronics Div.Burlington, VT$1,150,000.00(802) 555-1234
    Software DevelopmentMonterey$40,000.00(408) 555-1234
  CollapseSoftware Products Div.Monterey$1,200,000.00(408) 555-1234
    Quality AssuranceMonterey$48,000.00(408) 555-1234
    Customer SupportMonterey$38,000.00(408) 555-1234
    Research and DevelopmentBurlington, VT$460,000.00(802) 555-1234
    Customer ServicesBurlington, VT$850,000.00(802) 555-1234

The DevExpress ASP.NET Tree List (ASPxTreeList) enables you to provide custom style settings used to paint individual data cells or entire nodes, depending on the content of the ASPxTreeList. To do this, handle the HtmlDataCellPrepared or HtmlRowPrepared events, respectively. This gives you the capability to flag data as needed.

In this demo, the HtmlRowPrepared event is used to color green rows in which the Location field value is Monterey. In the HtmlDataCellPrepared event handler, cells in the Budget column are yellow. The brightness of the color depends on the cell value. Values over one million are bold.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxTreeListDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxTreeListDemos