Click here to Skip to main content
15,850,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i export my DataGrid information into an .csv , excel and PDF file? I'm using Microsoft Visual Studio 2010 with .NET Framework 4.0.

Please suggest me any good link to achieve these three functionalities at a time.

Thanks in advance

there are many popular components for export data with various file format like pdf, csv, excel etc. But i used aspose components(word, cells) for doing that and happy with that. Just one thing that is it is not free.


For pdf itextsearch component is also very popular. It is also opensource. If you want code sample then[^]

You should loop wpf grid and may create datatable based on that grid data and use aspose component and export it as you want.
Share this answer
Thanks S.M Ahasan Habib for suggesting me itextsearch.dll for Export Datagrid to PDF.For exporting datatgrid data to Excel,i figured out myself.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900