Hello Dayana,
I'm just checking if you need any further assistance with the matter.
Hi DayanaArul,
You could achieve this using code similar to the following:
protected void Button1_Click(object sender, EventArgs e)
{
WebDocumentExporter1.ExportMode = Infragistics.Web.UI.GridControls.ExportMode.Custom;
WebDocumentExporter1.Format = Infragistics.Web.UI.GridControls.FileFormat.PDF;
Report r = new Report();
WebDocumentExporter1.Export(r, WebDataGrid1);
r.Publish(Server.MapPath("report.pdf"), FileFormat.PDF);
}
This will save the grid in a pdf file in your project’s root directory.
Please let me know if you have any questions.