Shovan Saha

Shovan Saha

  • NA
  • 321
  • 92.6k

avoid duplicate value datagridview to iTextSharp

Sep 13 2017 2:47 PM
I do not want to see duplicate value in pdf report from datagridview, how?
 
foreach (DataRow r in dt.Rows)
{
if (dt.Rows.Count > 0)
{
pdfTable.AddCell(new Phrase(r[2].ToString(), fontTable2));
pdfTable.AddCell(new Phrase(r[3].ToString(), fontTable2));
pdfTable.AddCell(new Phrase(r[4].ToString(), fontTable2));
}
}
 
 
 

Answers (4)