Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This example demonstrates how to customize the appearance of Blazor grid elements based on custom conditions.

License

NotificationsYou must be signed in to change notification settings

DevExpress-Examples/blazor-grid-conditional-formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid for Blazor - Customize cell appearance based on custom conditions

The example demonstrates how to customize appearance ofDevExpress Blazor Grid elements based on custom conditions.

Grid - Customize Element Appearance

The code example usessummary items to calculate minimum, maximum, and average column values. Based on cell and summary item values, aCustomizeElement event handler changes cell appearance in the following columns:

Discount Column
Cells that display positive values are colored green.

Unit Price Column
All cell values are bold. If a cell value is lower than the column average value, the cell's font color is green; otherwise, it is red.

Quantity Column
If a cell value is lower than the average column value, the cell is colored in a shade of red; otherwise, it is a shade of blue. The more a cell value differs from the average value, the brighter the color. If a cell value is equal to the average value, the color is white.

Total Column
A cell displays one of the following arrows based on its value:

  • A red arrow pointing down - small values.

  • A yellow arrow pointing left - medium values.

  • A green arrow pointing up - large values.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

This example demonstrates how to customize the appearance of Blazor grid elements based on custom conditions.

Topics

Resources

License

Stars

Watchers

Forks

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp