• Material 3
  • Fluent
  • Bootstrap v5
  • Tailwind CSS
  • High Contrast
Preferences
Theme Selection
Theme Modes
Mode Selection
Touch
Mouse
Localization
*Translated by Google Translator.
Currency

Example of Header Template in ASP.NET MVC Data Grid Control

This sample demonstrates the Grid header template feature. In this sample, we have shown custom icons in the column headers.

DEMO
SOURCE

The Grid provides a way to use a custom element in header element. Columns->HeaderTemplate property accepts either string or HTML element`s ID value, which will be used as the template for the header cell.

In this demo, we have render customized template for EmployeeID and BirthDate column headers.

Transform your ASP.NET MVC web apps today with Syncfusion ASP.NET MVC components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE