Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am using wijmo gridview which is third part tool. i need to convert gridview to pdf.
asp.net gridview works well with itextsharp.dll and converts gridveiw to pdf file.
But wijmo gridview reads emtpy "" in text..
C#
PdfPTable pdfTable = new PdfPTable(grdweballorders.HeaderRow.Cells.Count); //created pdftable

foreach (C1GridViewRow c1gridviewrow in grdweballorders.Rows) //loop through each row
{
    foreach (TableCell tableCell in c1gridviewrow.Cells) //loop through each cell
    {
        PdfPCell pdfcell = new PdfPCell(new Phrase(tableCell.Text));  // Here i am getting "" (emtpy in tableCell.Text when i use wijmo gridview. but if i use asp.net grid view, i am getting                                                                                                                              cell value)
        pdfTable.AddCell(pdfcell);
    }
}
Posted
Updated 9-Jul-14 20:48pm
v2

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