Blazor DataGrid Example - Clipboard Operations
Order ID | Customer ID | Order Date | Freight | Ship Country |
|---|
| 10001 | ALFKI | 5/15/1991 | $2.30 | Denmark |
| 10002 | ANATR | 4/4/1990 | $3.30 | Brazil |
| 10003 | ANTON | 11/30/1957 | $4.30 | Germany |
| 10004 | BLONP | 10/22/1930 | $5.30 | Austria |
| 10005 | BOLID | 2/18/1953 | $6.30 | Switzerland |
| 10006 | ALFKI | 5/15/1991 | $4.60 | Denmark |
| 10007 | ANATR | 4/4/1990 | $6.60 | Brazil |
| 10008 | ANTON | 11/30/1957 | $8.60 | Germany |
| 10009 | BLONP | 10/22/1930 | $10.60 | Austria |
| 10010 | BOLID | 2/18/1953 | $12.60 | Switzerland |
| 10011 | ALFKI | 5/15/1991 | $6.90 | Denmark |
| 10012 | ANATR | 4/4/1990 | $9.90 | Brazil |
This sample demonstrates the DataGrid's copy to clipboard functionality for efficient data transfer.
The DataGrid component provides built-in clipboard support, allowing you to copy selected row or cell data to the clipboard. Use keyboard shortcuts or the CopyAsync method to trigger the copy operation.
In this demo, copy data from selected rows to the clipboard using the following keyboard shortcuts or toolbar buttons:
- Ctrl + C - Copy selected rows or cells data without headers.
- Ctrl + Shift + H - Copy selected rows or cells data with headers.
For more detailed information about the clipboard feature, refer to the clipboard documentation.