Conditional Formatting

 
RegionMarch SalesSeptember SalesMarch ChangeSeptember ChangeMarket Share
Europe
$206,400$234,3005.23%4.61%70%
 
 
Austria
$22,000$29,00013.64%10.34%92%
 
 
Belgium
$9,500$8,800-20.00%-25.00%16%
 
 
Denmark
$19,000$21,0005.26%4.76%56%
 
 
France
$18,000$23,000-16.67%-10.87%51%
 
 
Germany
$31,000$35,5006.45%5.63%93%
 
 
Ireland
$9,500$11,2003.16%2.68%34%
 
 
Italy
$16,500$19,0003.03%2.63%22%
 
 
Netherlands
$8,800$9,6002.27%2.08%85%
 
 
Poland
$8,500$9,7003.53%3.09%52%
 
 
Romania
$4,600$5,3004.35%3.77%30%
 
 
Spain
$11,000$10,00010.91%8.00%82%
 
 
Switzerland
$9,000$10,5007.78%7.62%14%
 
 
United Kingdom
$14,000$15,5003.57%3.23%91%
 
 
Ukraine
$17,500$20,0005.71%5.00%60%
Asia
$33,300$39,3006.61%5.60%52%
 
 
China
$20,000$23,5007.50%6.38%82%
 
 
India
$4,500$5,3004.44%3.77%44%
 
 
Japan
$8,800$10,5005.68%4.76%70%
Oceania
$10,000$10,9003.00%2.75%80%
 
 
Australia
$8,000$9,1003.75%3.30%75%
 
 
New Zealand
$2,000$1,8000.00%0.00%40%
Middle East
$11,600$12,9002.59%2.33%58%
 
 
Saudi Arabia
$4,800$5,4004.17%3.70%65%
 
 
United Arab Emirates
$6,800$7,5001.47%1.33%35%
Africa
$63,900$71,8002.90%2.58%41%
 
 
Egypt
$7,900$8,7002.53%2.30%52%
 
 
Nigeria
$15,500$18,0003.23%2.78%30%
 
 
South Africa
$17,000$18,5002.94%2.70%62%
 
 
Kenya
$11,000$12,4002.73%2.42%55%
 
 
Morocco
$10,500$11,9002.86%2.52%48%
 
 
Ghana
$2,000$2,3002.50%2.17%38%
North America
$32,000$36,0004.69%4.17%84%
 
 
Canada
$11,700$13,4004.27%3.73%64%
 
 
USA
$20,300$22,6004.93%4.42%87%
South America
$17,100$19,4004.68%4.12%32%
 
 
Argentina
$5,900$6,7005.08%4.48%88%
 
 
Brazil
$4,500$5,1004.44%3.92%10%
 
 
Chile
$6,700$7,6004.48%3.95%70%
Data grid with 39 rows and 6 columns
0 rows are selected

Our DevExpress TreeList for Blazor allows you to customize the appearance of UI elements based on custom conditions. To introduce this capability in your next DevExpress-powered Blazor app, handle the TreeList's CustomizeElement event and use the following event arguments to modify row and cell styles:

  • ElementType — An element type.
  • CssClass — The name of a CSS class applied to the processed element.
  • Attributes — Standard HTML attributes applied to the processed element.
  • Style — A standard HTML style attribute applied to the processed element.
  • VisibleIndex — The visible index of the processed row or row that contains the processed cell.
  • Column — The column that corresponds to the processed cell.
  • TreeList — Provides access to TreeList properties.

This demo customizes the appearance of TreeList elements as follows:

  • Nodes with children are gray.
  • Cells in March Change and September Change columns with values larger than 5% are colored green.
  • Cells in March Change and September Change columns with values less than -5% are colored red.