Grids
Example of Clipboard in ASP.NET Core Data Grid Control
This sample demonstrates copy to clipboard functionality of the Grid component. Select rows and click Copy button from toolbar to copy content. To copy with header click Copy with header button from toolbar.
Order ID | Customer Name | 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 |
Copy with Header
Atleast one row should be selected to copy with header
Selected rows or cells data in the Grid can be copied into the clipboard using the Keyboard shortcuts and copy
method.
In this demo, selected rows data can be copied into the clipboard using the below Keyboard shortcuts or toolbar interactions.
Ctrl + C
- Selected rows or cells data without header.Ctrl + Shift + H
- Selected rows or cells data with header.