views:

890

answers:

2

I'm new to c#. Can you suggest a useful link to convert datagrid to PDF.

A: 

http://itextsharp.sourceforge.net/

iTextSharp is an open source library you could use to generate and manipulate the PDFs.

Kurt Schindler
+1  A: 

The problem you have is "how do you want it laid out?". You can use something like iTextSharp, which is a great library, but not that good at laying out simple stuff like this. I would instead create an RDLC-based report using VS's Report Designer, and then use the LocalReport class's Render() method to render the report, using your dataset as the data source, to PDF.

Dave Markle