I have solution and work fine
I need in line 7 to add multiple columns with date and time...some help?
-
- foreach (DataGridViewRow row in mp_racun_listaDataGridView.Rows)
- {
- int c = 0;
- foreach (DataGridViewCell cell in row.Cells)
- {
- if (c == 2)
- {
- PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString().Split(' ')[0], calibri));
- pdfTable.AddCell(cell2);
- }
- else
- {
- PdfPCell cell2 = new PdfPCell(new Phrase(cell.Value.ToString(), calibri));
- pdfTable.AddCell(cell2);
- }
- c++;
- }
- }