Radzen Blazor Components

Export to Excel and CSV

Export a Blazor DataGrid to Excel and CSV directly in the browser - no server required. Choose between the current page and all rows; exports respect the current sort, filter, column order, format strings, and theme - colors, gridlines and font size, including compact density.

Export Link to this section

Call ExportToExcelAsync or ExportToCsvAsync and pick a scope - the current page or all filtered and sorted rows.

Rows:

LoadData export Link to this section

This grid loads one page at a time. Exporting all rows requests the filtered and sorted data in chunks, reports progress, and restores the visible page when done.

Rows:

Customization Link to this section

The Total column has no Property; it renders a template on screen and exports through ExportValue, with FormatString applied to the returned value. ToWorkbookAsync returns the workbook before it is saved so you can customize it with the full spreadsheet API - the customized download appends a totals row with a SUM formula.

Frequently asked questions

How do I export a DataGrid to Excel or CSV?

Call ExportToExcelAsync or ExportToCsvAsync on the grid and select the current page or all filtered and sorted rows.

Does the export respect the current sort and filter?

Yes. Exports use the grid's view - the current sort, filter, column order, visibility, and format strings.

Radzen Blazor Newsletter

Get an email when new components and releases ship.

We care about your data. Read our Privacy Policy.

All the tools in one place

Save Hours on Every Project

With Radzen Blazor subscription you get the full toolkit, including:

Dedicated support backed by proven expertise

Premium themes and theme editor

Ready-to-use UI blocks

Complete app templates

Visual design-time-experience

Radzen Blazor Studio

Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under MIT

Demos Configuration

Premium Themes

  • Material 3
  • Material 3 Dark
  • Material 3 Expressive
  • Material 3 Expressive Dark
  • Zen
  • Zen Dark
  • Fluent
  • Fluent Dark

Free Themes

  • Material
  • Material Dark
  • Standard
  • Standard Dark
  • Default
  • Dark
  • Humanistic
  • Humanistic Dark
  • Software
  • Software Dark
An error has occurred. This app may no longer respond until reloaded. Reload 🗙