i need to export a datagrid to excel and pdf however i can't do that through a reportviewer because i don't have a database, i set manually the values of my datagrid. Is there a way to do that, preferably without a third party library.
thanks in advance!

ReportViewer doesn't need a database. It can be run in Local Processing mode. If you care about formatting, this is absolutely the best way. For excel with no formatting you could output a CSV file, but writing a PDF without a third party library is going to be a challenge.

Hope it goes well. I use this option extensively in a tool at my work. The only thing I had trouble with initially was setting up the data sources. This link might help with that: Data Sources and Local Processing
–
ArandaJul 23 '11 at 5:34