Example of Conditional Formatting in ASP.NET MVC Tree Grid Control

This samples demonstrates the way of customizing the cells by adding icons for Priority column and highlight the cells of Progress column based on certain condition using QueryCellInfo event.

DEMO
SOURCE

The appearance of cells can be customized by using the QueryCellInfo event. The QueryCellInfo event triggers for every cell. In that event handler, you can get QueryCellInfoEventArgs that contains the details of the cell.

In this demo, we have customized the column values by adding icons for Priority column and highlighted the Progress column based on certain condition using QueryCellInfo event.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab