I am trying to create a table using iTextSharp library in C#. What I want to set the width of the cell in the table.
I am using following code:
PdfPTable Ptbl_DetailsPerformance = new PdfPTable(7);
Ptbl_DetailsPerformance.SetWidths(new int[7] { 20, 8, 8, 8, 8, 8, 1 });
PdfPCell cellValue = new PdfPCell();
Now I want to dynamically set the width of cell but get error that "Width can't be set."
What should I do? Please help..