You cannot do this in client side, because silverlight class library doesn't support that. But you can post all the data to the server via WCP service, and then generate a excel file there using that data, then post the file or the file URL back, so that
you can download it by browser.
Regard!
Ling Bing
Bei Jing University of Aeronautics and Astronautics
Bei Jing, China
DLL
Member
1 Points
4 Posts
SilverLight DataGrid: Export to excel or csv
Nov 21, 2008 01:29 AM | LINK
Hi everyone,
Is there a way I can export my Silverlight DataGrid data to excel or csv?
Any links to an example?
Thanks a lot
silverlight asp.net c# datagrid excel csv
lingbing
Contributor
2249 Points
406 Posts
Re: SilverLight DataGrid: Export to excel or csv
Nov 21, 2008 01:38 AM | LINK
You cannot do this in client side, because silverlight class library doesn't support that. But you can post all the data to the server via WCP service, and then generate a excel file there using that data, then post the file or the file URL back, so that you can download it by browser.
Regard!
Bei Jing University of Aeronautics and Astronautics
Bei Jing, China
Roc1
Member
41 Points
23 Posts
Re: SilverLight DataGrid: Export to excel or csv
Nov 21, 2008 03:14 AM | LINK
Hope that helps, RC
JerseyDude
Member
29 Points
24 Posts
Re: Re: SilverLight DataGrid: Export to excel or csv
Jan 12, 2010 10:41 PM | LINK
See this thread at StackOverflow:
http://stackoverflow.com/questions/304322/silverlight-datagrid-export-to-excel-or-csv/1221942#1221942