Blazor DataGrid Example - Default Exporting
This sample shows how to export the DataGrid's data to the Excel, PDF, and CSV file formats.
Order ID | Customer ID | Freight | Order Date | Ship Country |
---|
10001 | ALFKI | $2.30 | 5/15/1991 | Denmark |
10002 | ANATR | $3.30 | 4/4/1990 | Brazil |
10003 | ANTON | $4.30 | 11/30/1957 | Germany |
10004 | BLONP | $5.30 | 10/22/1930 | Austria |
10005 | BOLID | $6.30 | 2/18/1953 | Switzerland |
10006 | ALFKI | $4.60 | 5/15/1991 | Denmark |
10007 | ANATR | $6.60 | 4/4/1990 | Brazil |
10008 | ANTON | $8.60 | 11/30/1957 | Germany |
10009 | BLONP | $10.60 | 10/22/1930 | Austria |
10010 | BOLID | $12.60 | 2/18/1953 | Switzerland |
10011 | ALFKI | $6.90 | 5/15/1991 | Denmark |
10012 | ANATR | $9.90 | 4/4/1990 | Brazil |
Using the toolbar buttons, the Blazor DataGrid allows you to export data to Excel, PDF, and CSV file formats.
Actions for exporting toolbar items can be defined using ExportToExcelAsync, ExportToPdfAsync and ExportToCsvAsync methods in this demo.
More information about the Exporting feature can be found in the documentation section.