• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Theme Selection
Mode Selection
*Translated by Google Translator.

Example of Cell Template in ASP.NET MVC Pivot Table Control

In this sample demonstrate the cell customization based on the values changes for every next year with previous year using the cell template options.


The Pivot Table provides a way to use a custom layout for each cell using cell template feature. The cellTemplate property accepts either string or HTML element`s ID value, which will be used as the template for the cell.

In this samples, using cell template, we have presented revenue cost for each year with trend image. For displaying trend, we have applied the conditions for each cell using pivot values from dataBound event. Based on the condition passed we have updated the trend image.