RayCraftDocs
v1.0.3 raycraft.dev
On this page

DataGridSpreadsheetButton

Complete

A toolbar button for a DataGrid that saves the rows of the grid (all pages, after filtering and sorting, visible columns only) as an .xlsx file. Numbers, dates and flags stay typed in the spreadsheet; text is always stored as text, so a value that starts with = is never turned into a formula.

Example

DataGridSpreadsheetButton control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
FileNamestringFile name without the extension (default export).
GridDataGrid<TItem>The DataGrid to export (pass it with @ref).
SheetNamestringName of the worksheet (default Data).
StylestringInline style added to the root element.

Package

DataGridSpreadsheetButton is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.