Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

SilverLight DataGrid: Export to excel or csv RSS

3 replies

Last post Jan 12, 2010 10:41 PM by JerseyDude

(0)
  • DLL

    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

    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!

    Ling Bing
    Bei Jing University of Aeronautics and Astronautics
    Bei Jing, China
  • Roc1

    Roc1

    Member

    41 Points

    23 Posts

    Re: SilverLight DataGrid: Export to excel or csv

    Nov 21, 2008 03:14 AM | LINK

    http://www.syncfusion.com/Products/xlsio/backoffice/default.aspx can generate the Excel doc server side.  I'm sure there are other products (perhaps even open source) - this is just one that I have used and it works well.

    Hope that helps, RC
  • JerseyDude

    JerseyDude

    Member

    29 Points

    24 Posts

    Re: Re: SilverLight DataGrid: Export to excel or csv

    Jan 12, 2010 10:41 PM | LINK