DataGrid / Exporting / Template Exporting

Blazor DataGrid Example - Template Column Exporting

Loading Syncfusion Blazor Server Demos…

Drag a column header here to group its column

This sample demonstrates how to export DataGrid templates, customized captions, and footer aggregates to PDF and Excel file formats.

The Blazor DataGrid supports template exporting, enabling you to preserve custom column layouts during export. Use the Template property of the GridColumn component to define custom column content. Access template data using the implicit Context parameter.

The DataGrid supports aggregates in the footer, group footer, and group caption using the GridAggregates component for flexible aggregate configuration.

In this demo:

Grouping is disabled for the Email and Freight columns to maintain focus on the template and aggregate export functionality.

For more detailed information about template exporting, refer to the exporting documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE