Hi Mohammad,
Please find the response below.
- To export the datagrid to pdf you have to refer the
Syncfusion.SfDataGridConverter.Winforms and Syncfusion.Pdf.Base.
- To export the datagrid to excel you have to refer the
Syncfusion.SfDataGridConverter.Winforms and Syncfusion.XlsIO.Base dlls.
- For NuGet package, you have to install the
Syncfusion.DataGridExport.Winforms package to export the datagrid to pdf
and excel.
We have also
created the sample to export the datagrid to pdf and excel.
Sample Link : https://www.syncfusion.com/downloads/support/forum/173326/ze/Sample1137200061
Please refer the sample and let us
know if you have any concerns.
Regards,
Sampath
Narayanan.S