Excel Cell Style Customization
18 Nov 20181 minute to read
Conditional cell formatting
TreeGrid cells in the exported Excel can be customized or formatted using ExcelQueryCellInfo event. In this event, we can format the treegrid cells of exported PDF document based on the column cell value.
In the below sample, we have set the background color for Duration column in the exported excel by args.cell and backgroundColor property.
Theme
The excel export provides an option to include theme for exported excel document.
To apply theme in exported Excel, define the theme in ExcelExportProperties.
NOTE
By default, material theme is applied to exported excel document.
You can refer to ourASP.NET MVC Tree Gridfeature tour page for its groundbreaking feature representations. You can also explore ourASP.NET MVC Tree Grid exampleto knows how to present and manipulate data.